Test for presence of Application in haml before trying to render details, to fix errors identified by CI

signup-info-prompt
Effy Elden 2017-01-15 09:10:44 +11:00
parent d6bc0e8db4
commit 6c002cf615
1 changed files with 4 additions and 3 deletions

View File

@ -28,6 +28,7 @@
= link_to TagManager.instance.url_for(status), class: 'detailed-status__datetime u-url u-uid', target: @external_links ? '_blank' : nil, rel: 'noopener' do = 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) %span= l(status.created_at)
· ·
- if status.application
= link_to status.application.website, class: 'detailed-status__application', target: @external_links ? '_blank' : nil, rel: 'noooper' do = link_to status.application.website, class: 'detailed-status__application', target: @external_links ? '_blank' : nil, rel: 'noooper' do
%span= status.application.name %span= status.application.name
· ·