Anonymous committed ab6048a

Tidying up base template

1. Use colour_scheme variable to decide which CSS file to load (default, scotland or lords).

2. Add in favicon tags.

3. Remove 'X days to close' banner as the deadline will pass soon and there is little point in adding support for it in the templating system.

Comments (0)

Files changed (1)


   <title>{% block title %}{% endblock %} - The Public Whip</title>
   <link rel="stylesheet" type="text/css" href="/publicwhip.css" media="all">
   <link rel="stylesheet" type="text/css" href="/publicwhip_print.css" media="print">
-  {% if colour_scheme == 'default' %}
-  <link rel="stylesheet" type="text/css" href="/css/default.css" media="all">
-  {% endif %}
+  <link rel="stylesheet" type="text/css" href="/css/{{ colour_scheme }}.css" media="all">
+  <link rel="icon" href="/favicon.ico" type="image/x-icon" />
+  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
   <link rel="alternate" type="application/rss+xml" title="RSS" href="" />
   <script type="text/javascript" src="/publicwhip.js"></script>
 <!-- hold the maximum width of the content -->
 <table align="center" class="container" cellpadding="0" cellspacing="0" border="0">
-  <tr>
-    <td colspan="2" style="font-size:140%; padding:1em; background-color: #d0ffd0; color:#00000">
-      Deadline! X days to go. Find Public Whip a good institutional home, or it'll shut down.
-      <a href="">Read our open letter</a>.
-    </td>
-  </tr>
   <!-- the site logo -->
     <td class="identity" colspan="1"><a href="/index.php"><img src="/thepublicwhip.gif" alt="The Public Whip"></a></td>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.