本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
abunchtell
/
mastodon
關注
1
收藏
0
複製
0
程式碼
問題
0
活動
瀏覽代碼
Added <link> tags to profiles and entries
master
Eugen Rochko
8 年之前
父節點
9ec03ab5f5
當前提交
f1654da7ad
共有
3 個檔案被更改
,包括
10 行新增
和
2 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
app/views/layouts/application.html.haml
+4
-1
app/views/profile/entry.html.haml
+4
-0
app/views/profile/show.html.haml
+ 2
- 1
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
+ 4
- 1
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 }
+ 4
- 0
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
Write
Preview
Loading…
取消
儲存