]> cat aescling's git repositories - mastodon.git/commitdiff
Added <link> tags to profiles and entries
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 28 Feb 2016 13:41:01 +0000 (14:41 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 28 Feb 2016 13:41:01 +0000 (14:41 +0100)
app/views/layouts/application.html.haml
app/views/profile/entry.html.haml
app/views/profile/show.html.haml

index c654b5f19352d512990404abda4d0244c6f7cd14..f152172037ccd091463f2f16dc75f4bc349ff728 100644 (file)
@@ -1,4 +1,4 @@
-!!!
+!!! 5
 %html
   %head
     %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
@@ -6,6 +6,7 @@
     = stylesheet_link_tag    'application', media: 'all'
     = javascript_include_tag 'application'
     = csrf_meta_tags
+    = yield :header_tags
   %body
     .container
       = yield
index 33eaa5f1dd214d8fc08dfd113e06200792f127d8..e4d5db300d3ac81ed37f7e6a85941c62832004e6 100644 (file)
@@ -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 }
index b7f4bdeaf072b8380efbd52cd9fd2a93434495e8..c02bdddcfda482cca6c652cc7c76c5e142a00395 100644 (file)
@@ -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