Mercurial > agora-palash
annotate templates/base.djhtml @ 143:7a27b1c9cb84
Add LESS compilation (toggled in settings)
Disabled by default to make development easier, but should be used in
production environments.
author | dellsystem <ilostwaldo@gmail.com> |
---|---|
date | Fri, 12 Oct 2012 22:59:56 -0400 |
parents | 4ca1b54f07f3 |
children |
rev | line source |
---|---|
7
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
4 <head> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
5 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
6 <meta http-equiv="Content-Language" content="en-us" /> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
7 |
33
28a512881850
Several fixes. See detailed commit message.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
32
diff
changeset
|
8 <title>Agora Octave — |
23
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
17
diff
changeset
|
9 {% block title %} |
35
290dd9208cc4
Implement editing user profiles and fix bugs related to the login/logout buttons. Implement 403 exception
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
33
diff
changeset
|
10 Free your numbers! |
23
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
17
diff
changeset
|
11 {% endblock %} |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
17
diff
changeset
|
12 </title> |
7
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
13 |
9
2da64c6aa689
Begin implementing Fotios' design
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
8
diff
changeset
|
14 <meta name="Copyright" content="Agora Octave is free software |
2da64c6aa689
Begin implementing Fotios' design
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
8
diff
changeset
|
15 under the Affero General Public License version 3 as published by |
2da64c6aa689
Begin implementing Fotios' design
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
8
diff
changeset
|
16 the Free Software Foundation, or at your option, any later |
2da64c6aa689
Begin implementing Fotios' design
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
8
diff
changeset
|
17 version" /> |
7
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
18 |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
19 <meta name="keywords" content="Octave, mathematics, numerical |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
20 analysis, open source, free software, Agora" /> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
21 |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
22 <meta name="description" content="Agora Octave is a website that |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
23 enables collaboration with Octave-related personal projects and |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
24 code" /> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
25 |
143
7a27b1c9cb84
Add LESS compilation (toggled in settings)
dellsystem <ilostwaldo@gmail.com>
parents:
122
diff
changeset
|
26 {% if compile_less %} |
7a27b1c9cb84
Add LESS compilation (toggled in settings)
dellsystem <ilostwaldo@gmail.com>
parents:
122
diff
changeset
|
27 <link href="/static/css/agora.css" rel="stylesheet" type="text/css" /> |
7a27b1c9cb84
Add LESS compilation (toggled in settings)
dellsystem <ilostwaldo@gmail.com>
parents:
122
diff
changeset
|
28 {% else %} |
80
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
29 <link href="/static/css/imports.less" |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
30 rel="stylesheet/less" type="text/css" media="screen" /> |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
31 |
143
7a27b1c9cb84
Add LESS compilation (toggled in settings)
dellsystem <ilostwaldo@gmail.com>
parents:
122
diff
changeset
|
32 <script src="/static/js/less.min.js" type="text/javascript"></script> |
7a27b1c9cb84
Add LESS compilation (toggled in settings)
dellsystem <ilostwaldo@gmail.com>
parents:
122
diff
changeset
|
33 {% endif %} |
7a27b1c9cb84
Add LESS compilation (toggled in settings)
dellsystem <ilostwaldo@gmail.com>
parents:
122
diff
changeset
|
34 |
23
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
17
diff
changeset
|
35 {% block extrahead %}{% endblock %} |
7
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
36 </head> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
37 |
33
28a512881850
Several fixes. See detailed commit message.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
32
diff
changeset
|
38 <body id="{% block sectionid %}generic{% endblock %}" |
7
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
39 class="{% block coltype %}default{% endblock %}"> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
40 |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
41 <div id="container"> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
42 <div id="header"> |
80
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
43 <div class="wrap"> |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
44 <a href="{% url home %}"> |
117
12dd104b1227
Make <img> for logo image self-closing
dellsystem <ilostwaldo@gmail.com>
parents:
107
diff
changeset
|
45 <img src="/static/img/logo.png" alt="Agora Octave" class="logo" /> |
80
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
46 </a> |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
47 <ul class="nav"> |
122
4ca1b54f07f3
Use IDs instead of classes for the header icons
dellsystem <ilostwaldo@gmail.com>
parents:
119
diff
changeset
|
48 <li><a href="{% url code %}" id="code-icon">Code</a></li> |
4ca1b54f07f3
Use IDs instead of classes for the header icons
dellsystem <ilostwaldo@gmail.com>
parents:
119
diff
changeset
|
49 <li><a href="{% url discuss %}" id="discuss-icon">Discuss</a></li> |
4ca1b54f07f3
Use IDs instead of classes for the header icons
dellsystem <ilostwaldo@gmail.com>
parents:
119
diff
changeset
|
50 <li><a href="{% url help %}" id="help-icon">Help</a></li> |
4ca1b54f07f3
Use IDs instead of classes for the header icons
dellsystem <ilostwaldo@gmail.com>
parents:
119
diff
changeset
|
51 <li><a href="{% url about %}" id="about-icon">About</a></li> |
9
2da64c6aa689
Begin implementing Fotios' design
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
8
diff
changeset
|
52 </ul> |
2da64c6aa689
Begin implementing Fotios' design
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
8
diff
changeset
|
53 </div> |
7
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
54 </div> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
55 <!-- END Header --> |
80
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
56 {% block billboard %}<div id="header-below"></div>{% endblock %} |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
57 <div id="content"> |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
58 {% block navbar %} |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
59 <div id="breadcrumbs"> |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
60 <div class="right-float"> |
107 | 61 {% block login_breadcrumbs %} |
80
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
62 {% if user.is_authenticated %} |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
63 <a href="{% url auth_logout %}">Logout</a> |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
64 :: |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
65 <a href="{% url edit_profile %}">Account settings</a> |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
66 :: |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
67 <a href="{% url show_profile user %}">View your profile ({{ user }})</a> |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
68 {% else %} |
107 | 69 <a href="{% url login %}?next={{ request.path }}" class="login-link"> |
70 Login or register | |
71 </a> | |
80
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
72 {% endif %} |
107 | 73 {% endblock %} |
80
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
74 </div> |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
75 <div> |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
76 {% block breadcrumbs %} |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
77 |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
78 {% endblock %} |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
79 </div> |
33
28a512881850
Several fixes. See detailed commit message.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
32
diff
changeset
|
80 </div> |
80
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
81 {% endblock %} |
17
cb9a7c6c3800
Implement rounded boxes and titles for holding content
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
15
diff
changeset
|
82 |
80
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
83 {% block content %} |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
84 {% endblock %} |
7
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
85 </div> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
86 <!-- END #content --> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
87 </div> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
88 <!-- END #container --> |
31
b2fd20d03fb4
CSS hack to make the footer stick to the bottom
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
23
diff
changeset
|
89 <div id="footer"> |
b2fd20d03fb4
CSS hack to make the footer stick to the bottom
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
23
diff
changeset
|
90 <p id="copyright"> |
b2fd20d03fb4
CSS hack to make the footer stick to the bottom
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
23
diff
changeset
|
91 © 1998-{% now "Y"%} |
b2fd20d03fb4
CSS hack to make the footer stick to the bottom
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
23
diff
changeset
|
92 <a href="http://www.gnu.org/software/octave/acknowledgments.html"> |
b2fd20d03fb4
CSS hack to make the footer stick to the bottom
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
23
diff
changeset
|
93 John W. Eaton and others</a> unless otherwise noted. |
80
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
94 :: |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
95 Help us build this site! Clone the |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
96 <a href="http://inversethought.com/hg/hgwebdir.cgi/agora/">source</a> |
eaa36eaaf74a
Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents:
71
diff
changeset
|
97 and start contributing. :: About |
31
b2fd20d03fb4
CSS hack to make the footer stick to the bottom
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
23
diff
changeset
|
98 </p> |
102
f872c643b056
Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
80
diff
changeset
|
99 </div> |
f872c643b056
Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
80
diff
changeset
|
100 <!-- END #footer --> |
107 | 101 {% block login_form %} |
102 <div id="login-popup" class="hidden"> | |
103 <div id="login-form"> | |
104 {% include "login_form.djhtml" %} | |
105 </div> | |
106 </div> | |
107 {% endblock %} | |
119
2d5d80c0e967
Add type attribute to script tags on home page
dellsystem <ilostwaldo@gmail.com>
parents:
117
diff
changeset
|
108 <script src="/static/js/jquery.min.js" type="text/javascript"></script> |
2d5d80c0e967
Add type attribute to script tags on home page
dellsystem <ilostwaldo@gmail.com>
parents:
117
diff
changeset
|
109 <script src="/static/js/agora.js" type="text/javascript"></script> |
47
139e4b8ffb17
Fix display of js code and copy-pastability of displayed code
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
42
diff
changeset
|
110 {% block script_footer %} |
139e4b8ffb17
Fix display of js code and copy-pastability of displayed code
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
42
diff
changeset
|
111 {% endblock %} |
7
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
112 </body> |
6c2d400091fd
Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
113 </html> |