about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorSTJrInuyasha <MattWCSTRFAN@gmail.com>2017-04-25 06:06:24 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-04-25 15:06:24 +0200
commit1b9447853bb3381bb9f43b60fdd9cab41e92b53c (patch)
tree684105662291707ed00eea8fbc570945f1da60fe /app
parent122d59ac41a0c637b19357c2b7422002ffa0381c (diff)
Login link for single user instances (#2393)
* Login link for single user instances

* Flip the if statement around
Fixes AuthorizationController tests
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/footer.scss2
-rw-r--r--app/views/layouts/public.html.haml4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/stylesheets/footer.scss b/app/assets/stylesheets/footer.scss
index 719bfcf43..07ecb5e75 100644
--- a/app/assets/stylesheets/footer.scss
+++ b/app/assets/stylesheets/footer.scss
@@ -13,7 +13,7 @@
     }
   }
 
-  .powered-by {
+  .powered-by, .single-user-login {
     font-weight: 400;
 
     a {
diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml
index 556102f53..7bb0f71ff 100644
--- a/app/views/layouts/public.html.haml
+++ b/app/views/layouts/public.html.haml
@@ -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