Improving design

This commit is contained in:
Eugen Rochko
2016-02-26 21:11:52 +01:00
parent 24646d5769
commit fa29ef3a41
5 changed files with 63 additions and 15 deletions

View File

@ -9,3 +9,5 @@
%body
.container
= yield
.footer
= link_to 'Mastodon', 'https://github.com/Gargron/mastodon', class: 'mastodon-link'

View File

@ -1,4 +1,9 @@
%div.entry
%div.entry{ class: status.reblog? ? 'entry-reblog' : 'entry-status' }
- if status.reblog?
.pre-header
%i.fa.fa-retweet
Shared by
= link_to status.account.display_name.blank? ? status.account.username : status.account.display_name, (status.account.local? ? profile_url(name: status.account.username) : status.account.url), class: 'name'
.header
= render partial: 'status_header', locals: { status: status.reblog? ? status.reblog : status }
.content

View File

@ -5,3 +5,6 @@
.counter.counter-favourites
%i.fa.fa-star
%span.num= status.favourites.count
- if status.reply?
= link_to 'View conversation', status.thread.local? ? status_url(name: status.thread.account.username, id: status.thread.id) : status.thread.url, class: 'conversation-link'