Adding paperclip for avatars, fixing design of the public pages
This commit is contained in:
parent
fa29ef3a41
commit
2c70f0ecaa
14 changed files with 116 additions and 74 deletions
|
@ -1,2 +1,13 @@
|
|||
module ProfileHelper
|
||||
def display_name(account)
|
||||
account.display_name.blank? ? account.username : account.display_name
|
||||
end
|
||||
|
||||
def profile_url(account)
|
||||
account.local? ? super(name: account.username) : account.url
|
||||
end
|
||||
|
||||
def status_url(status)
|
||||
status.local? ? super(name: status.account.username, id: status.stream_entry.id) : status.url
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue