Added <link> tags to profiles and entries

This commit is contained in:
Eugen Rochko 2016-02-28 14:41:01 +01:00
parent 9ec03ab5f5
commit f1654da7ad
3 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,4 @@
!!! !!! 5
%html %html
%head %head
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/ %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
@ -6,6 +6,7 @@
= stylesheet_link_tag 'application', media: 'all' = stylesheet_link_tag 'application', media: 'all'
= javascript_include_tag 'application' = javascript_include_tag 'application'
= csrf_meta_tags = csrf_meta_tags
= yield :header_tags
%body %body
.container .container
= yield = yield

View 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 } = render partial: @type, locals: { @type.to_sym => @entry.activity, include_threads: true, is_predecessor: false, is_successor: false }

View 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 .card
.avatar= image_tag @account.avatar.url(:medium) .avatar= image_tag @account.avatar.url(:medium)
.bio .bio