about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-30 23:01:37 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-30 23:01:37 +0100
commitc2fbd144cf5aa5cafd486190c0fb31ffd73ccac1 (patch)
tree216ccce4101d24a4e6d63a3ca51aba26b6d950ee /app
parent86b3cb512052b8969e2f259dd784569738efe33f (diff)
Add "open in web" link to detailed public status pages
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/stream_entries.scss8
-rw-r--r--app/views/stream_entries/_detailed_status.html.haml4
2 files changed, 12 insertions, 0 deletions
diff --git a/app/assets/stylesheets/stream_entries.scss b/app/assets/stylesheets/stream_entries.scss
index 2d3cb1436..595275527 100644
--- a/app/assets/stylesheets/stream_entries.scss
+++ b/app/assets/stylesheets/stream_entries.scss
@@ -302,6 +302,14 @@
       color: $color3;
     }
   }
+
+  .open-in-web-link {
+    text-decoration: none;
+
+    &:hover {
+      text-decoration: underline;
+    }
+  }
 }
 
 .embed {
diff --git a/app/views/stream_entries/_detailed_status.html.haml b/app/views/stream_entries/_detailed_status.html.haml
index 6ee8c9e5b..235dc6086 100644
--- a/app/views/stream_entries/_detailed_status.html.haml
+++ b/app/views/stream_entries/_detailed_status.html.haml
@@ -44,3 +44,7 @@
     %span<
       = fa_icon('star')
       %span= status.favourites.count
+
+    - if user_signed_in?
+      ·
+      = link_to t('statuses.open_in_web'), web_url("statuses/#{status.id}"), class: 'open-in-web-link'