Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
131 lines (114 sloc) 4.44 KB
{% load i18n %}
{# 'base.html' #}
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}"
xml:lang="{% firstof LANGUAGE_CODE 'en' %}"
lang="{% firstof LANGUAGE_CODE 'en' %}">
<head>
<title>{% block title %}{% endblock %}</title>
{% block css %}
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}combined-{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}.css" />
{% endblock %}
{% block js %}
<!--[if lte IE 6]><script src="/static/js/ie6-warning.js"></script><script>window.onload=function(){e("/static/images/ie6-warning/")}</script><![endif]-->
<script type="text/javascript" src="{{ MEDIA_URL }}combined-{{ LANGUAGE_CODE }}.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".setlang_link").click(function(){
$("#setlang_input").val(this.lang);
$("#setlang_form").submit();
})
})
</script>{% endblock %}
{% block extra-head %}{% endblock %}
</head>
<body>
{% block header %}
<div id="header">
<div class="menu">
<div class="left_menu" >
<a href="/" class="link_button">{% trans "Home"%}</a> |
<a href="/planning" class="link_button">{% trans "Planning"%}</a> |
<a href="{%url gogogo.views.transit.index %}" class="link_button">{%trans "Transit information" %}</a> |
{% if user.is_authenticated %}
<a href="{%url gogogo.views.db.changelog.list %}">{% trans "Changelog" %}</a> |
{% endif %}
<a href="/about" class="link_button">{% trans "About" %}</a>
</div>
<div class="right_menu" >
{% if user.is_authenticated %}
<span class="usr-highlight">{{ user.username }}</span> |
{% if user.is_staff %}
<a href="/admin/" class="link_button">{% trans "Admin" %}</a> |
{% endif %}
{% endif %}
{% for lang in LANGUAGES %}
{%if not forloop.first %}| {%endif%}<span class="setlang_link link_button" id="setlang_{{lang.0}}" lang="{{lang.0}}">{{ lang.1 }}</span>
{% endfor %}
| <a href="http://groups.google.com/group/gogogo-hk-discuss">{%trans "Help" %}</a> |
{% if user.is_authenticated %}
<a href="{% url django.contrib.auth.views.logout %}" class="link_button">Sign out</a>
{% else %}
<a href="{% url django.contrib.auth.views.login %}" class="link_button">Sign in</a>
{% endif %}
</div>
</div>
<!--<hr>-->
</div>
{% endblock %}
<div id="content">
{% block content-header %}
<div id="content-header">
{% if error %}<div class="error">{{ error }}</div>{% endif %}
{% if info %}<div class="info">{{ info }}</div>{% endif %}
{% if messages %}
{% for message in messages %}
<div class="info">{{ message }}</div>
{% endfor %}
{% endif %}
</div>
{% endblock %}
{% block content %}{% endblock %}
</div>
{% block footer %}
<div id="footer">
<hr>
<a href="http://code.google.com/p/app-engine-patch/"><img src="{{ MEDIA_URL }}global/powered-by-app-engine-patch.png" alt="powered by app-engine-patch" /></a>
</div>
{%endblock%}
{# Hidden language selection form #}
<form id="setlang_form" action="/i18n/setlang/" method="post">
<input name="next" type="hidden" value="{{ request.get_full_path|urlencode }}" />
<input id="setlang_input" name="language" type="hidden">
</form>
<script type="text/javascript">
$(function() {
$('.ui-button,.ui-icon-container').hover(
function(){
$(this).addClass("ui-state-hover");
},
function(){
$(this).removeClass("ui-state-hover");
}
).mousedown(function(){
$(this).addClass("ui-state-active");
})
.mouseup(function(){
$(this).removeClass("ui-state-active");
});
});
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10627835-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>
Something went wrong with that request. Please try again.