Update base template
authorKostas Papadimitriou <kpap@grnet.gr>
Mon, 2 Apr 2012 14:39:21 +0000 (17:39 +0300)
committerKostas Papadimitriou <kpap@grnet.gr>
Mon, 2 Apr 2012 14:39:21 +0000 (17:39 +0300)
- Include ie7 specific css styles
- Include footer from separate template file to make it easy to override

snf-astakos-app/astakos/im/templates/im/base.html
snf-astakos-app/astakos/im/templates/im/footer.html [new file with mode: 0644]

index a55f501..ba5f5b1 100644 (file)
       <link rel="stylesheet" href="{{ IM_STATIC_URL }}css/styles.css" 
         type='text/css'>
       <link rel="stylesheet" href="{{ IM_STATIC_URL }}css/custom.css" 
-        type='text/css'>
+      type='text/css'>
+      <!--[if lte IE 7]>
+            <link rel="stylesheet" type="text/css" 
+            href="{{ IM_STATIC_URL }}im/css/ie7.css">
+      <![endif]-->
   {% endblock page.css %}
 
   {% block headjs %}
         {% endif %}
         <div class="page">
             {% block page.body %}
-                <div class="maincol">
+                <div class="maincol full">
                     {% block body %}
                     {% endblock %}
                 </div>
             {% endblock %}
         </div>
     </div>
-    <div class="footer">
-        {% block footer_content %}
-        <div class="last row">
-            Copyright 2011-2012 <a href="http://www.grnet.gr" alt="GRNET S.A.">GRNET S.A.</a> All rights reserved.
-        </div>
-        {% endblock %}
-    </div>
+    {% include "im/footer.html" %}
 </body>
 </html>
diff --git a/snf-astakos-app/astakos/im/templates/im/footer.html b/snf-astakos-app/astakos/im/templates/im/footer.html
new file mode 100644 (file)
index 0000000..c4f148d
--- /dev/null
@@ -0,0 +1,9 @@
+<div class="footer">
+    {% block footer_content %}
+    <div class="last row clearme">
+        Copyright 2011-2012 <a href="http://www.grnet.gr" alt="GRNET S.A.">GRNET S.A.</a> All rights reserved.
+        <div class="termslink" style="float:right"><a href="{% url latest_terms %}">Terms of use</a></div>
+    </div>
+    {% endblock %}
+</div>
+