base.html
7.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
{% load i18n browserid conversejs gravatar %}
<html>
<head>
{% block head %}
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Colab - {% block title %}Colab{% endblock %}</title>
<link rel="shortcut icon" type="image/x-icon" href="{{ STATIC_URL }}img/interlegis.ico">
<link rel="stylesheet" href="{{ STATIC_URL }}third-party/bootstrap/css/bootstrap.min.css" type="text/css" media="screen, projection" />
<link rel="stylesheet"
href="{{ STATIC_URL }}third-party/font-awesome/css/font-awesome.min.css"
type="text/css" media="screen" />
{% if not is_mobile %}
{% conversejs_static %}
{% endif %}
<link rel="stylesheet" href="{{ STATIC_URL }}css/screen.css"
type="text/css" media="screen" />
<!-- JQuery 2+ won't work for IE < 9 -->
<script type="text/javascript" src="{{ STATIC_URL }}third-party/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}third-party/jquery.debouncedresize.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}third-party/jquery.cookie.js"></script>
<script src="{{ STATIC_URL }}third-party/bootstrap/js/bootstrap.min.js"></script>
{% block head_js %}{% endblock %}
{% block head_css %}{% endblock %}
{% block google_analytics %}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-30841845-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
{% endblock %}
{% endblock %}
</head>
<body class="container">
{% block navbar %}
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/"><img alt="Colab" src="/static/img/logo_nav.png"></a>
</div>
<div class="collapse navbar-collapse navbar-main">
<ul class="nav navbar-nav">
<li>
<a href="{% url 'thread_list' %}">{% trans "Discussions" %}</a>
</li>
<li>
<a href="{% url "feedzilla_index" %}">{% trans "Planet" %}</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% trans "Contribute" %} <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="/wiki">Wiki</a></li>
{% if user.is_active %}
<li><a href="/newticket">{% trans "New Ticket" %}</a></li>
{% endif %}
<li><a href="/timeline">{% trans "Timeline" %}</a></li>
<li><a href="/roadmap">{% trans "Roadmap" %}</a></li>
<li><a href="/browser">{% trans "Browse Source" %}</a></li>
<li><a href="/report">{% trans "View Tickets" %}</a></li>
</ul>
</li>
<li class="hidden-lg hidden-md">
<a href="{% url 'haystack_search' %}?q=">{% trans "Search" %}</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
{% if not user.is_authenticated %}
<li><a href="{% url 'signup' %}">{% trans "Register" %}</a></li>
<li>{% browserid_login text='Login' %}</li>
{% else %}
<li id="user-menu" class="dropdown">
<a href="#" class="dropdown-toggle user" data-toggle="dropdown">{% gravatar user.email 40 %} <b class="caret"></b> </a>
<ul class="dropdown-menu" role="menu">
<li>
<div class="wrapper">
<div class="thumbnail">{% gravatar user.email 100 %}</div>
<div class="user-info">
<span><b>{{ user.get_full_name }}</b></span>
<span class="quiet">{{ user.email }}</span>
</div>
<div>
<a class="btn btn-info pull-left" href="{% url 'user_profile' user.username %}">{% trans "My Profile" %}</a>
{% browserid_logout text='Logout' link_class='btn btn-default pull-right' %}
</div>
</div>
</li>
</ul>
</li>
{% endif %}
</ul>
<form action="{% url 'haystack_search' %}" method="GET" id="search-form" class="navbar-form navbar-right hidden-xs hidden-sm" role="search">
<div class="form-group">
<label class="sr-only" for="header-searchbox">{% trans 'Search here...' %}</label>
<input name="q" id="header-searchbox"
class="form-control" value="{{ request.GET.q }}"
type="search" placeholder="{% trans 'Search here...' %}" />
</div>
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
</form>
</div>
</div>
</nav>
{% endblock %}
{% block messages %}
{% if request.GET.bid_login_failed %}
<div class="alert alert-dismissable alert-danger">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
{% trans 'The login has failed. Please, try again.' %}
</div>
{% endif %}
{% for message in messages %}
<div class="alert alert-dismissable {{ message.tags }}">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
{{ message }}
</div>
{% endfor %}
<div id="alert-js" class="alert alert-dismissable alert-warning" hidden>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<span id="alert-message"></span>
</div>
{% endblock %}
{% block header %}{% endblock %}
<div id="main-content">
{% block main-content %}{% endblock %}
</div>
<div class="row"> </div>
{% block footer %}
<p class="col-lg-12 text-center">{% trans "Last email imported at" %} {{ last_imported_message.received_time|date:'DATETIME_FORMAT' }}</p>
<div class="row">
</div>
<div class="row">
<p class="col-lg-12 text-center">
{% trans "The contents of this site is published under license" %}
<a href="http://creativecommons.org/licenses/by-nc-sa/2.0/br/">
{% trans "Creative Commons - attribution, non-commercial" %}
</a>
</p>
</div>
{% endblock %}
{% if not is_mobile %}
{% conversejs_chatpanel %}
{% conversejs_initialize %}
{% endif %}
{% include "tz/set_utc_offset.html" %}
{% browserid_js %}
</body>
</html>