diff options
author | Effy Elden <git@effy.is> | 2017-01-15 09:10:44 +1100 |
---|---|---|
committer | Effy Elden <git@effy.is> | 2017-01-15 09:10:44 +1100 |
commit | 6c002cf615128151e089b197bebdbe813bc64da6 (patch) | |
tree | df457ab5fa1a7d3a000e4cbc126bbacda621f5a3 /app/views/stream_entries | |
parent | d6bc0e8db4d25a4533feb56164b0d9cd3ef2af6e (diff) |
Test for presence of Application in haml before trying to render details, to fix errors identified by CI
Diffstat (limited to 'app/views/stream_entries')
-rw-r--r-- | app/views/stream_entries/_detailed_status.html.haml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/stream_entries/_detailed_status.html.haml b/app/views/stream_entries/_detailed_status.html.haml index bc9940915..a89503cff 100644 --- a/app/views/stream_entries/_detailed_status.html.haml +++ b/app/views/stream_entries/_detailed_status.html.haml @@ -28,9 +28,10 @@ = link_to TagManager.instance.url_for(status), class: 'detailed-status__datetime u-url u-uid', target: @external_links ? '_blank' : nil, rel: 'noopener' do %span= l(status.created_at) · - = link_to status.application.website, class: 'detailed-status__application', target: @external_links ? '_blank' : nil, rel: 'noooper' do - %span= status.application.name - · + - if status.application + = link_to status.application.website, class: 'detailed-status__application', target: @external_links ? '_blank' : nil, rel: 'noooper' do + %span= status.application.name + · %span = fa_icon('retweet') %span= status.reblogs.count |