Browse Source

Login link for single user instances (#2393)

* Login link for single user instances

* Flip the if statement around
Fixes AuthorizationController tests
closed-social-glitch-2
STJrInuyasha 7 years ago
committed by Eugen Rochko
parent
commit
1b9447853b
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      app/assets/stylesheets/footer.scss
  2. +4
    -0
      app/views/layouts/public.html.haml

+ 1
- 1
app/assets/stylesheets/footer.scss View File

@ -13,7 +13,7 @@
}
}
.powered-by {
.powered-by, .single-user-login {
font-weight: 400;
a {

+ 4
- 0
app/views/layouts/public.html.haml View 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

Loading…
Cancel
Save