]> cat aescling's git repositories - mastodon.git/commitdiff
Add "open in web" link to detailed public status pages
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 30 Jan 2017 22:01:37 +0000 (23:01 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 30 Jan 2017 22:01:37 +0000 (23:01 +0100)
app/assets/stylesheets/stream_entries.scss
app/views/stream_entries/_detailed_status.html.haml
config/locales/en.yml

index 2d3cb1436682bd7c57849bfca32ebf03bc945562..595275527ef7114ebab69593e9496bcba43abe1a 100644 (file)
       color: $color3;
     }
   }
+
+  .open-in-web-link {
+    text-decoration: none;
+
+    &:hover {
+      text-decoration: underline;
+    }
+  }
 }
 
 .embed {
index 6ee8c9e5be8a30fcde2321610d63e643a3625419..235dc608632415f6b60d92479d1597273e6669a7 100644 (file)
@@ -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'
index 44396039c119b105e98ed35c7b57fe0089a8b6ff..16b406745e0edfc9687ef20966c928942dbadcab 100644 (file)
@@ -98,6 +98,7 @@ en:
     two_factor_auth: Two-factor Authentication
   statuses:
     over_character_limit: character limit of %{max} exceeded
+    open_in_web: Open in web
   stream_entries:
     click_to_show: Click to show
     favourited: favourited a post by