]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - www/templates/base.html
Website update.
[people/shoehn/ipfire.org.git] / www / templates / base.html
index 80c83409ea540129fd928dbd98d908d80305869e..6f52ca95a336be6e67fdcde0b50a5c8809d381d3 100644 (file)
@@ -1,85 +1,79 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html>
+<!DOCTYPE html>
+<html lang="en">
        <head>
-               <title>{{ hostname }} - {% block title %}{% end block %}</title>
+               <title>{{ hostname }} - {% block title %}{{ _("No title given") }}{% end block %}</title>
+               <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+               <meta name="author" content="IPFire.org - IPFire Development Team" />
+               <meta name="verify-v1" content="2LEf3W8naILGWVy2dhedSVEHPXTpp2xFNVsHXZMH1JI=" />
 
                <!-- Your locale is {{ locale.code }} -->
 
-               <!-- Some meta information -->
-               <meta name="keywords" content="Linux, Firewall, IPFire, Security" />
+               <meta name="keywords" content="Linux, Firewall, IPFire, Security, IPCop, Open Source, Free, ARM, VPN, Proxy, IDS, IPS" />
                <meta name="description" content="{{ _("IPFire is a free firewall distribution based on Linux.") }}" />
 
-               <!-- Some browser specific stuff -->
-               <meta name="verify-v1" content="2LEf3W8naILGWVy2dhedSVEHPXTpp2xFNVsHXZMH1JI=" />
-               <meta http-equiv="content-type" content="text/html; charset=utf-8" />
-               <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
-
-               <!-- Style information and javascript -->
+               <!-- styling stuff -->
+               <link rel="stylesheet" type="text/css" href="{{ static_url("css/bootstrap.min.css") }}" />
                <link rel="stylesheet" type="text/css" href="{{ static_url("css/style.css") }}" />
-               <link rel="stylesheet" type="text/css" href="{{ static_url("fancybox/jquery.fancybox-1.3.4.css") }}" />
-               <script type="text/javascript" src="{{ static_url("js/jquery.js") }}"></script>
-               <script type="text/javascript" src="{{ static_url("js/jquery-ui.js") }}"></script>
-               <script type="text/javascript" src="{{ static_url("fancybox/jquery.fancybox-1.3.4.pack.js") }}"></script>
-               <!--[if lt IE 7]>
-                       <link rel="stylesheet" type="text/css" href="{{ static_url("css/ie6.css") }}" />
-                       <script src="{{ static_url("js/correctpng.js") }}" type="text/javascript"></script>
-               <![endif]-->
+               <link href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
 
                {% if rss_url %}
                        <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ rss_url }}" />
                {% end %}
        </head>
+
        <body>
-               <div id="header">
-                       <div id="header_inner" class="fixed">
-                               <div id="logo">
-                                       <a href="http://www.ipfire.org/">
-                                               <img src="{{ static_url("images/tux_menu_99x100.png") }}" class="symbol" alt="IPFire" />
+               <div class="navbar navbar-fixed-top">
+                       <div class="navbar-inner">
+                               <div class="container">
+                                       <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+                                               <span class="icon-bar"></span>
+                                               <span class="icon-bar"></span>
+                                               <span class="icon-bar"></span>
                                        </a>
-                               </div>
-                               <div id="header_menu">
-                                       {% block menu %}
-                                               {{ modules.Menu() }}
-                                       {% end block %}
-                               </div>
-                               <div id="header_hostname">
-                                       <h1>{{ hostname }}</h1>
-                               </div>
-                               <div id="header_slogan">
-                                       <h2>{{ _("An Open Source Firewall Solution") }}</h2>
+                                       <a class="brand" href="/">{{ hostname }}</a>
+                                       <div class="nav-collapse">
+                                               {% block menu %}
+                                                       {{ modules.Menu() }}
+                                               {% end block %}
+                                       </div>
                                </div>
                        </div>
                </div>
-               <div id="main">
-                   <div id="main_inner" class="fixed">
-                               <table id="main_frame">
-                               <tr>
-                                               <td id="sh-tl"></td>
-                                               <td id="sh-top"></td>
-                                               <td id="sh-tr"></td>
-                                       </tr>
-                                       <tr>
-                                               <td id="sh-lft"></td>
-                                               <td id="no-sh">
-                                                       {% block columns %}{% end block %}
-                                               </td>
-                                               <td id="sh-rgt"></td>
-                                       </tr>
-                                       <tr>
-                                               <td id="sh-lft"></td>
-                                               <td id="footer" class="fixed2">
-                                                       Copyright &copy; {{ year }} IPFire.org. {{ _("All rights reserved.") }} <a href="http://www.ipfire.org/imprint">{{ _("imprint") }}</a>
-                                               </td>
-                                               <td id="sh-rgt"></td>
-                                       </tr>
-                                       <tr>
-                                               <td id="sh-bl"></td>
-                                               <td id="sh-btn"></td>
-                                               <td id="sh-br"></td>
-                                       </tr>
-                               </table>
+
+               {% block container %}
+                       <div class="container container-body">
+                               {% block body %}EMPTY BODY{% end block %}
+
+                               <hr />
+
+                               <footer class="footer">
+                                       {% if not hostname == "planet.ipfire.org" %}
+                                               <div class="pull-right">
+                                                       <p>
+                                                               {% for l in ("en", "de") %}
+                                                                       {% if not l == lang %}
+                                                                               <a href="?locale={{ l }}">
+                                                                                       <img src="{{ static_url("images/flags/%s.png" % l) }}" alt="{{ l }}">
+                                                                               </a>
+                                                                       {% end %}
+                                                               {% end %}
+                                                       </p>
+                                               </div>
+                                       {% end %}
+
+                                       <p>
+                                               &copy; {{ year }} - <a href="http://www.ipfire.org/">IPFire.org</a> -
+                                               {% if hostname in ("www.ipfire.org", "dev.ipfire.org") %}
+                                                       <a href="/press">{{ _("Press") }}</a> -
+                                               {% end %}
+                                               <a href="http://www.ipfire.org/imprint">{{ _("imprint") }}</a>
+                                       </p>
+                               </footer>
                        </div>
-               </div>
-       {% block javascript %}{% end block %}
+               {% end block %}
+
+               <script src="{{ static_url("js/jquery.js") }}"></script>
+               <script src="{{ static_url("js/bootstrap.min.js") }}"></script>
+               <script src="{{ static_url("js/site.js") }}"></script>
        </body>
 </html>