Source

genmap / templates / base.html

{% load i18n %}
{% load marktag %}
{%load flashtag %}
{% load blogtag %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>{%block title%}Gentoo Users{%endblock%}</title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
		{% if debug %}
		<link href="{{MEDIA_URL}}css/style-dev.css?v=1" rel="stylesheet" type="text/css"/>
		{%else%}
		<link href="{{MEDIA_URL}}css/style.css?v=1" rel="stylesheet" type="text/css"/>
		{%endif%}

		<!-- Begin IE Fixes (Don't touch unless you know what you're doing!)-->
		<!--[if IE]>
		<link type="text/css" href="{{MEDIA_URL}}css/ie.css" rel="stylesheet" />
		<![endif]-->
		<!-- End of IE fixes -->

        <style type="text/css">
        {% block extra_css %}{% endblock extra_css %}
        </style>

        {% block extrahead %}{% endblock extrahead %}
        {% block extra_head %}{% endblock extra_head %}
	</head>
	<body {%block inbody%}{%endblock%} >
		<div id="container">
			<div id="navigation">
				<ul>
					<li class="active"><a href="/">{% trans "Home"%}</a></li>
					<li><a href="/about/">{% trans "About this site"%}</a></li>
					<li><a href="/search/">{% trans "Search"%}</a></li>
					{%if user.is_authenticated %}
					<li>{% trans "You are logged in as"%}<a href="{%url view-profile user.username%}">{{user.username}}</a> (<a href="{% url openid-logout %}">{% trans "logout"%}</a>)</li>
					<li><a href="{%url edit-profile%}">{%trans "Edit profile"%}</a></li>
					{%else%}
					<li><a href="/accounts/">{%trans "Login"%}</a></li>
					<li><a href="{% url openid-register %}">{%trans "Sign up"%}</a></li>
					{%endif%}
					{#<li><a href="{%url blog-index%}">{% trans "Blog"%}</a></li>#}
				</ul>
			</div>
			<div id="header">
				<h1>{{ this_site.name }}</h1>
				<h2>{% blocktrans with community.name as community %}Locate {{ community }} users near you.{% endblocktrans %}</h2>
			</div>
			<div id="wrapper">
				<div id="content">
					{%flash_template%}
					{%block content %}
					{%endblock content%}
				</div>
			</div>
			{%block twocolumns%}
			<div id="sidebar">
				{%block sidebar%}
				{%endblock %}
			</div>

			<div id="extra">
				{%block extra%}
				{%endblock %}
			</div>
			{%endblock twocolumns%}

            {% with "||" as spacer %}
            <div id="footer">
                <span id="design-by">Design by <a href="#">What design?</a></span>
                Copyright &copy; <a href="http://kill9.eu">Arcanum</a>
                {{ spacer }}
                <a href="{% url privacy %}">{% trans "Privacy statement" %}</a>
                {{ spacer }}
                {% trans "powered by " %} <a href="http://bitbucket.org/arcanum/genmap/">genmap</a>
            </div>
            {% endwith %}
		</div>

		{%block endjsblock %}
		{#block for Javascript that needs to be right before the closing body tag#}
		{%endblock endjsblock %}

		{% if debug %}
		{%if google_analytics_code %}
		<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">
			var pageTracker = _gat._getTracker("{{google_analytics_code}}");
			pageTracker._trackPageview();
		</script>
		{%endif%}
		{%else%}

		{%endif%} {# if debug#}
	</body>
</html>

<!-- Design by Smallpark.org. Released as open source. -->
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.