From f1654da7ad11920979d335798cfeef2e88118c1b Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 28 Feb 2016 14:41:01 +0100 Subject: [PATCH] Added tags to profiles and entries --- app/views/layouts/application.html.haml | 3 ++- app/views/profile/entry.html.haml | 5 ++++- app/views/profile/show.html.haml | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index c654b5f193..f152172037 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -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 diff --git a/app/views/profile/entry.html.haml b/app/views/profile/entry.html.haml index 33eaa5f1dd..e4d5db300d 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 b7f4bdeaf0..c02bdddcfd 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