diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-26 20:48:20 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-26 20:48:20 +0100 |
commit | 24646d57690ad36cf4caecab2eec5774bca7f699 (patch) | |
tree | e6118271d38a47edb6b7518ff5dacedb76cbf7f9 /app/views/profile/_status_header.html.haml | |
parent | f16b31f0773c2fd1122ff0ad98cb392e762f0d0b (diff) |
Adding views for the profile and entry pages
Diffstat (limited to 'app/views/profile/_status_header.html.haml')
-rw-r--r-- | app/views/profile/_status_header.html.haml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/profile/_status_header.html.haml b/app/views/profile/_status_header.html.haml new file mode 100644 index 000000000..6f0e8748e --- /dev/null +++ b/app/views/profile/_status_header.html.haml @@ -0,0 +1,8 @@ += link_to (status.account.local? ? profile_url(name: status.account.username) : status.account.url), class: 'name' do + %strong= status.account.display_name.blank? ? status.account.username : status.account.display_name + = "@#{status.account.acct}" + += link_to status.local? ? status_url(name: status.account.username, id: status.stream_entry.id) : status.url, class: 'time' do + %span{ title: status.created_at } + = time_ago_in_words(status.created_at) + ago |