]> cat aescling's git repositories - mastodon.git/commitdiff
Login link for single user instances (#2393)
authorSTJrInuyasha <MattWCSTRFAN@gmail.com>
Tue, 25 Apr 2017 13:06:24 +0000 (06:06 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 25 Apr 2017 13:06:24 +0000 (15:06 +0200)
* Login link for single user instances

* Flip the if statement around
Fixes AuthorizationController tests

app/assets/stylesheets/footer.scss
app/views/layouts/public.html.haml

index 719bfcf4353824d80ee977b1cb27ad6c40a6aceb..07ecb5e7554b309b68ae767b8fdf9ed2aa4d446a 100644 (file)
@@ -13,7 +13,7 @@
     }
   }
 
-  .powered-by {
+  .powered-by, .single-user-login {
     font-weight: 400;
 
     a {
index 556102f538046e7487fa22c69c8524eb89a4b06b..7bb0f71ffe0c816ec062f6799e0d8cada838a8c8 100644 (file)
@@ -4,6 +4,10 @@
 - content_for :content do
   .container= yield
   .footer
+    - if !user_signed_in? && single_user_mode?
+      %span.single-user-login
+        = link_to t('auth.login'), new_user_session_path
+        = "\u2014"
     %span.domain= link_to site_hostname, root_path
     %span.powered-by
       = t('generic.powered_by', link: link_to('Mastodon', 'https://github.com/tootsuite/mastodon')).html_safe