source: trunk/templates/portal.html @ 114

Revision 102, 2.9 KB checked in by aarkerio, 10 years ago (diff)

Template contexts added

Line 
1{% load i18n %}
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" 
4{% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
5<head>
6{% block javascript %}
7<script type="text/javascript" src="/media/js/protoculous-1.0.2-packed.js"></script>
8<script type="text/javascript" src="/media/js/jquery.min.js"></script>
9
10{% endblock %}
11<title>{% block title %}{% endblock %}</title>
12<link rel="stylesheet" type="text/css" href="/media/css/styles.css" />
13
14{% block extrastyle %}{% endblock %}
15{% block extrahead %}{% endblock %}
16{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
17</head>
18<body>
19
20{# charge header #}
21{% load quicks_extras %}
22
23{% view_cats %}
24
25{% load poll_extras %}
26
27{% if messages %}
28           <ul class="messagelist">{% for message in messages %}<li>{{ message|escape }}</li>{% endfor %}</ul>
29{% endif %}
30
31<!-- table 760 main 220 sidebar = 980 -->
32<table style="width:980px;margin:0 auto">
33<tr><td style="height:40px;font-size:18pt;background-color:#1b5790;color:#fff;padding:5px;" colspan="2">::Despabilando La MonoNeurona::</td></tr>
34<tr><td style="height:15px;" colspan="2">
35     <a href="/">Home</a> | <a href="/about/contact/">Contact</a> | <a href="/about/contact/">About Us</a> | <a href="/admin/">Admin</a>
36</td></tr>
37<tr>
38<td id="tdcontent" style="width:760px;padding:5px;vertical-align:top;">
39  {# charge quick news only in homepage #}
40  {% if qnews %}
41      {% view_list %}
42  {% endif %}
43
44  {% block content %}{% endblock %}
45</td>
46
47<td id="sidebar" style="width:210px;border:1px dotted gray;vertical-align:top;padding:4px;vertical-align:top;">
48
49<p>{% current_time "%Y-%m-%d %I:%M %p" %}.</p>
50
51{% if user.is_authenticated %}
52    <p>Welcome, {{ user.username }}. <a href="/accounts/profile/">Preferences</a>.</p>
53    <p><a href="/admin/quicks/quicks/add/">Submit a link</a>.</p>
54    <p><a href="/admin/logout/">Logout</a>.</p>
55{% else %}
56    {% include 'elements/login.html' %}
57{% endif %}
58
59{% last_wwwd %}
60
61{# Show the last posts #}
62{% last_posts %}
63
64{# Show the poll #}
65{%  if not request.session.has_voted  %}
66    {% view_poll %}
67{% else %}
68    {% view_results %}
69{% endif %}
70
71{% include 'elements/nav.html' %}
72
73<div style="margin:15px 0;text-align:center;">
74<a href="http://www.djangoproject.com/">
75<img src="/media/img/static/powered.gif" alt="Django Powered" title="Django Powered" />
76</a></div>
77
78<div style="margin:15px 0;text-align:center;">
79<a href="http://www.postgresql.org/">
80<img src="/media/img/static/pgsql-micro.gif" alt="PostgreSQL Powered" title="PostgreSQL Powered" />
81</a></div>
82
83</td></tr>
84
85<tr><td id="footer" colspan="2" style="margin:25px;padding:20px;text-align:center;background-color:#000;color:#fff;font-size:10pt;">
86Colectivo Mononeurona :: 2008-2009 GPLv3, Creative Commons
87</td></tr>
88</table>
89</body>
90</html>
Note: See TracBrowser for help on using the repository browser.