]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog: Add login link to footer
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Sep 2018 12:38:58 +0000 (13:38 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Sep 2018 12:38:58 +0000 (13:38 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scss/style.scss
src/templates/base.html

index 4409a77136474c0f1b3f03f47980e7fb8ddfefb4..1b06720b18869d8041d535ecaaaf709151a37065 100644 (file)
@@ -403,14 +403,16 @@ footer {
                        box-shadow: none;
                }
        }
-}
 
-#copyright {
-       background-color: rgba($blue-grey-900, .06);
-       padding: 1rem 0;
-       p {
-               font-size: 12px;
-               line-height: 16px;
+       .copyright {
+               background-color: rgba($blue-grey-900, .06);
+               padding: $spacer 0;
+
+               font-size: $small-font-size;
+
+               a {
+                       color: $text-muted;
+               }
        }
 }
 
index 2b509911066a8bdb976474da6c8a77511bf19c4f..1bb17283708d4e352eadc80943509a905ef58f48 100644 (file)
                                        </div>
                                </div>
                                
-                               <div id="copyright">
-                                       <div class="container">
-                                               <p>&copy; {{ year }} - {{ _("IPFire is free software written by the IPFire Project") }}</p>
+                               <div class="copyright">
+                                       <div class="container d-flex justify-content-between">
+                                               &copy; {{ year }} - {{ _("IPFire is free software written by the IPFire Project") }}
+
+                                               {% if not current_user and hostname in ("blog.ipfire.org") %}
+                                                       <a href="/login">Login</a>
+                                               {% end %}
                                        </div>
                                </div>
                        </footer>