]> git.ipfire.org Git - ipfire.org.git/commitdiff
Show big footer only on front page and blog
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Oct 2018 13:17:23 +0000 (14:17 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Oct 2018 13:17:23 +0000 (14:17 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/base.html

index 27373bfb72ad932a5a2f2286008712f12fd5edde..d44b3b4dceb5f8cdae16d328274bf1c3f9a9d2f1 100644 (file)
 
                {% block footer %}
                        <footer class="footer">
-                               <div class="container pb-3">
-                                       <div class="row mb-6">
-                                               <div class="col-6 col-sm-5 offset-sm-2 col-md-3 offset-md-0 col-lg-2 mb-5">
-                                                       <h4>{{ _("About") }}</h4>
-
-                                                       <ul class="list-unstyled">
-                                                               <li>
-                                                                       <a href="https://www.ipfire.org/about">{{ _("About IPFire") }}</a>
-                                                               </li>
-                                                               <li>
-                                                                       <a href="https://downloads.ipfire.org">{{ _("Download") }}</a>
-                                                               </li>
-                                                               <li>
-                                                                       <a href="https://blog.ipfire.org">{{ _("Blog") }}</a>
-                                                               </li>
-                                                               <li>
-                                                                       <a href="https://www.ipfire.org/legal">{{ _("Legal") }}</a>
-                                                               </li>
-                                                       </ul>
-                                               </div>
-
-                                               <div class="col-6 col-sm-5 col-md-3 col-lg-2 mb-5">
-                                                       <h4>{{ _("Support") }}</h4>
-
-                                                       <ul class="list-unstyled">
-                                                               <li>
-                                                                       <a href="https://www.ipfire.org/get-support#professional">{{ _("Professional Support") }}</a>
-                                                               </li>
-                                                               <li>
-                                                                       <a href="https://wiki.ipfire.org">{{ _("Documentation") }}</a>
-                                                               </li>
-                                                       </ul>
-                                               </div>
+                               {% if hostname in ("www.ipfire.org", "blog.ipfire.org", "dev.ipfire.org") %}
+                                       <div class="container pb-3">
+                                               <div class="row mb-6">
+                                                       <div class="col-6 col-sm-5 offset-sm-2 col-md-3 offset-md-0 col-lg-2 mb-5">
+                                                               <h4>{{ _("About") }}</h4>
+
+                                                               <ul class="list-unstyled">
+                                                                       <li>
+                                                                               <a href="https://www.ipfire.org/about">{{ _("About IPFire") }}</a>
+                                                                       </li>
+                                                                       <li>
+                                                                               <a href="https://downloads.ipfire.org">{{ _("Download") }}</a>
+                                                                       </li>
+                                                                       <li>
+                                                                               <a href="https://blog.ipfire.org">{{ _("Blog") }}</a>
+                                                                       </li>
+                                                                       <li>
+                                                                               <a href="https://www.ipfire.org/legal">{{ _("Legal") }}</a>
+                                                                       </li>
+                                                               </ul>
+                                                       </div>
 
-                                               <div class="col-6 col-sm-5 offset-sm-2 col-md-3 offset-md-0 col-lg-2 mb-5">
-                                                       <h4>{{ _("Community") }}</h4>
+                                                       <div class="col-6 col-sm-5 col-md-3 col-lg-2 mb-5">
+                                                               <h4>{{ _("Support") }}</h4>
+
+                                                               <ul class="list-unstyled">
+                                                                       <li>
+                                                                               <a href="https://www.ipfire.org/get-support#professional">{{ _("Professional Support") }}</a>
+                                                                       </li>
+                                                                       <li>
+                                                                               <a href="https://wiki.ipfire.org">{{ _("Documentation") }}</a>
+                                                                       </li>
+                                                               </ul>
+                                                       </div>
 
-                                                       <ul class="list-unstyled">
-                                                               <li>
-                                                                       <a href="https://forum.ipfire.org">{{ _("Forum") }}</a>
-                                                               </li>
-                                                       </ul>
-                                               </div>
+                                                       <div class="col-6 col-sm-5 offset-sm-2 col-md-3 offset-md-0 col-lg-2 mb-5">
+                                                               <h4>{{ _("Community") }}</h4>
 
-                                               <div class="col-6 col-sm-5 col-md-3 col-lg-2 mb-6">
-                                                       <h4>{{ _("Development") }}</h4>
+                                                               <ul class="list-unstyled">
+                                                                       <li>
+                                                                               <a href="https://forum.ipfire.org">{{ _("Forum") }}</a>
+                                                                       </li>
+                                                               </ul>
+                                                       </div>
 
-                                                       <ul class="list-unstyled">
-                                                               <li>
-                                                                       <a href="https://wiki.ipfire.org/devel/start">{{ _("Development") }}</a>
-                                                               </li>
-                                                       </ul>
-                                               </div>
+                                                       <div class="col-6 col-sm-5 col-md-3 col-lg-2 mb-6">
+                                                               <h4>{{ _("Development") }}</h4>
 
-                                               <div class="col-sm-8 offset-sm-2 col-md-12 offset-md-0 col-lg-4 pt-md-6 pt-lg-1 text-center">
-                                                       <a class="btn btn-primary btn-lg" href="//www.ipfire.org/donate">
-                                                               <span class="fas fa-heart"></span> {{ _("Donate") }}
-                                                       </a>
+                                                               <ul class="list-unstyled">
+                                                                       <li>
+                                                                               <a href="https://wiki.ipfire.org/devel/start">{{ _("Development") }}</a>
+                                                                       </li>
+                                                               </ul>
+                                                       </div>
 
-                                                       <div class="btn-toolbar justify-content-around col-md-6 offset-md-3">
-                                                               <a class="btn btn-lg" href="https://blog.ipfire.org/feed.xml">
-                                                                       <span class="fas fa-rss"></span>
+                                                       <div class="col-sm-8 offset-sm-2 col-md-12 offset-md-0 col-lg-4 pt-md-6 pt-lg-1 text-center">
+                                                               <a class="btn btn-primary btn-lg" href="//www.ipfire.org/donate">
+                                                                       <span class="fas fa-heart"></span> {{ _("Donate") }}
                                                                </a>
 
-                                                               <a class="btn btn-lg" href="https://twitter.com/ipfire">
-                                                                       <span class="fab fa-twitter"></span>
-                                                               </a>
+                                                               <div class="btn-toolbar justify-content-around col-md-6 offset-md-3">
+                                                                       <a class="btn btn-lg" href="https://blog.ipfire.org/feed.xml">
+                                                                               <span class="fas fa-rss"></span>
+                                                                       </a>
 
-                                                               <a class="btn btn-lg" href="https://www.facebook.com/IPFire.org">
-                                                                       <span class="fab fa-facebook"></span>
-                                                               </a>
+                                                                       <a class="btn btn-lg" href="https://twitter.com/ipfire">
+                                                                               <span class="fab fa-twitter"></span>
+                                                                       </a>
 
-                                                               <a class="btn btn-lg" href="https://youtube.com/user/ipfireproject">
-                                                                       <span class="fab fa-youtube"></span>
-                                                               </a>
+                                                                       <a class="btn btn-lg" href="https://www.facebook.com/IPFire.org">
+                                                                               <span class="fab fa-facebook"></span>
+                                                                       </a>
+
+                                                                       <a class="btn btn-lg" href="https://youtube.com/user/ipfireproject">
+                                                                               <span class="fab fa-youtube"></span>
+                                                                       </a>
+                                                               </div>
                                                        </div>
                                                </div>
                                        </div>
-                               </div>
-                               
+                               {% end %}
+
                                <div class="copyright">
                                        <div class="container d-flex justify-content-between">
                                                &copy; {{ year }} - {{ _("IPFire is free software written by the IPFire Project") }}