about summary refs log tree commit diff
path: root/app/views/profile
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-02-28 14:41:01 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-02-28 14:41:01 +0100
commitf1654da7ad11920979d335798cfeef2e88118c1b (patch)
tree545fa397e17d192aa7dcc86c5a77e2edac007bc2 /app/views/profile
parent9ec03ab5f5647491bedf4eed8deb1d470e10b283 (diff)
Added <link> tags to profiles and entries
Diffstat (limited to 'app/views/profile')
-rw-r--r--app/views/profile/entry.html.haml5
-rw-r--r--app/views/profile/show.html.haml4
2 files changed, 8 insertions, 1 deletions
diff --git a/app/views/profile/entry.html.haml b/app/views/profile/entry.html.haml
index 33eaa5f1d..e4d5db300 100644
--- a/app/views/profile/entry.html.haml
+++ b/app/views/profile/entry.html.haml
@@ -1,2 +1,5 @@
-%div.activity-stream
+- content_for :header_tags do
+  %link{ rel: 'alternate', type: 'application/atom+xml', href: atom_entry_url(id: @entry.id) }/
+
+.activity-stream
   = render partial: @type, locals: { @type.to_sym => @entry.activity, include_threads: true, is_predecessor: false, is_successor: false }
diff --git a/app/views/profile/show.html.haml b/app/views/profile/show.html.haml
index b7f4bdeaf..c02bdddcf 100644
--- a/app/views/profile/show.html.haml
+++ b/app/views/profile/show.html.haml
@@ -1,3 +1,7 @@
+- content_for :header_tags do
+  %link{ rel: 'salmon', href: salmon_url(@account) }/
+  %link{ rel: 'alternate', type: 'application/atom+xml', href: atom_user_stream_url(id: @account.id) }/
+
 .card
   .avatar= image_tag @account.avatar.url(:medium)
   .bio