Fix tests, add applications to eager loading/cache for statuses, fix
application website validation, don't link to app website if website isn't set, also comment out animated boost icon from #464 until it's consistent with non-animated version
This commit is contained in:
parent
ab165547fd
commit
e9737c2235
14 changed files with 76 additions and 35 deletions
|
@ -1,3 +1,3 @@
|
|||
object @application
|
||||
|
||||
attributes :id, :name, :website
|
||||
attributes :name, :website
|
||||
|
|
|
@ -29,13 +29,15 @@
|
|||
%span= l(status.created_at)
|
||||
·
|
||||
- if status.application
|
||||
= link_to status.application.website, class: 'detailed-status__application', target: @external_links ? '_blank' : nil, rel: 'noopener' do
|
||||
%span= status.application.name
|
||||
- if status.application.website.blank?
|
||||
%strong.detailed-status__application= status.application.name
|
||||
- else
|
||||
= link_to status.application.name, status.application.website, class: 'detailed-status__application', target: '_blank', rel: 'noopener'
|
||||
·
|
||||
%span
|
||||
%span<
|
||||
= fa_icon('retweet')
|
||||
%span= status.reblogs.count
|
||||
·
|
||||
%span
|
||||
%span<
|
||||
= fa_icon('star')
|
||||
%span= status.favourites.count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue