From 5497b5af611a8c5eed14461c3b6fbbd0ead224ec Mon Sep 17 00:00:00 2001 From: "Renato \"Lond\" Cerqueira" Date: Tue, 4 Sep 2018 18:27:34 +0200 Subject: [PATCH] Add local only icon to status page --- app/views/stream_entries/_detailed_status.html.haml | 4 ++++ app/views/stream_entries/_simple_status.html.haml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/app/views/stream_entries/_detailed_status.html.haml b/app/views/stream_entries/_detailed_status.html.haml index d0d9cc5fc..efa5ab2d0 100644 --- a/app/views/stream_entries/_detailed_status.html.haml +++ b/app/views/stream_entries/_detailed_status.html.haml @@ -64,6 +64,10 @@ %span.detailed-status__favorites>= number_to_human status.favourites_count, strip_insignificant_zeros: true = " " + - if status.local_only + · + %span.detailed-status__link.modal-button.disabled< + = fa_icon 'chain-broken fw', 'title': t('statuses.local_only') - if user_signed_in? · = link_to t('statuses.open_in_web'), web_url("statuses/#{status.id}"), class: 'detailed-status__application', target: '_blank' diff --git a/app/views/stream_entries/_simple_status.html.haml b/app/views/stream_entries/_simple_status.html.haml index fc2cacf30..447e8663e 100644 --- a/app/views/stream_entries/_simple_status.html.haml +++ b/app/views/stream_entries/_simple_status.html.haml @@ -45,3 +45,6 @@ = fa_icon 'envelope fw' = link_to remote_interaction_path(status), class: 'status__action-bar-button icon-button modal-button', style: 'font-size: 18px; width: 23.1429px; height: 23.1429px; line-height: 23.15px;' do = fa_icon 'star fw' + - if status.local_only + %span.status__action-bar-button.icon-button.disabled{style: 'font-size: 18px; width: 23.1429px; height: 23.1429px; line-height: 23.15px;'}< + = fa_icon 'chain-broken fw', 'title': t('statuses.local_only')