source: telemeta/templates/telemeta/base.html @ a62ff5a

cremcrem2crem3devdev2diademsdj1.6feature/breadcrumbsfeature/ts-0.5feature/ts-0.5.4feature/writecacheformagenericinstru_searchlamlam2mapsv3mergenlivemultiproductionrelease/1.4.4sabiodsearchsecurityserversocialstoragetelecastertest
Last change on this file since a62ff5a was a62ff5a, checked in by yomguy <yomguy@…>, 3 years ago

go back

  • Property mode set to 100644
File size: 6.2 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2{% load i18n %}
3{% load telemeta_utils %}
4{% get_current_language as LANGUAGE_CODE %}
5{% get_available_languages as LANGUAGES %}
6<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
7
8<head>
9<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
10<title>{%block head_title %}{% description %} - Telemeta{% endblock %}</title>
11
12{% block stylesheets %}
13<link rel="stylesheet" type="text/css" href="{% url telemeta-css "telemeta.css" %}" />
14<link rel="alternate" href="/rss" title="RSS 2.0" type="application/rss+xml" />
15<!--[if IE]>
16<link rel="stylesheet" type="text/css" href="{% url telemeta-css "telemeta_ie.css" %}" />
17<![endif]-->
18<!--[if lte IE 6]>
19<link rel="stylesheet"type="text/css" href="{% url telemeta-css "telemeta_ie6.css" %}" />
20<![endif]-->
21{% endblock %}
22
23{% block javascript %}
24<script src="{% url django.views.i18n.javascript_catalog %}" type="text/javascript"></script>
25<!--<script src="{% url telemeta-js "jquery-1.6.min.js" %}" type="text/javascript"></script>-->
26<script src="{% url telemeta-timeside "js/libs/jquery-1.6.min.js" %}" type="text/javascript"></script>
27<script src="{% url telemeta-js "locale.js" %}" type="text/javascript"></script>
28<script src="{% url telemeta-js "application.js" %}" type="text/javascript"></script>
29{% if user.is_authenticated %}
30<script type='text/javascript'>var CURRENT_USER_NAME="{{ user.username }}";</script>
31{% else %}
32<script type='text/javascript'>var CURRENT_USER_NAME=undefined;</script>
33{% endif %}
34{% endblock %}
35
36{% block extra_javascript %}{% endblock %}
37</head>
38
39<body>
40{% block layout %}
41<div id="layout">
42{% block header %}
43<div id="header">
44<div id="logo">
45{% block logo %}
46<a href="{% url telemeta-home %}"><img src="{% url telemeta-images "logo_telemeta_2.png" %}" alt="Telemeta" /></a>
47{% endblock %}
48</div>
49
50<div id="auth_info">
51{% if user.is_authenticated %}
52<img src="{% url telemeta-images "user.png" %}" alt="user" style="vertical-align:middle" />
53{% trans "Welcome" %},
54{% if user.first_name and user.last_name %}
55{{ user.first_name }} {{ user.last_name }} |
56{% else %}
57{{ user.username }} |
58{% endif %}
59<a href="{% url telemeta-profile-detail user.username %}">{% trans "Profile" %}</a> |
60<a href="{% url telemeta-flatpage "help" %}">{% trans "Help" %}</a> |
61<a href="{% url telemeta-logout %}">{% trans "Sign out" %}
62<img src="{% url telemeta-images "logout.png" %}" alt="logout" style="vertical-align:middle" /></a>
63{% else %}
64<a href="{% url telemeta-flatpage "help" %}">{% trans "Help" %}</a> |
65<a href="{% url telemeta-login %}?next={{ request.path|urlencode }}">{% trans "Sign in" %}</a>
66{% endif %}
67</div>
68
69<div id="quick_search">
70<form action="{% url telemeta-search %}" id="_quickSearchForm" method="get">
71<input type="text" id="quick_search_pattern" name="pattern" />
72<a href="#" class="component button"
73                onclick="document.getElementById('_quickSearchForm').submit(); return false;">{% trans "Search" %}</a>
74</form>
75</div>
76
77<div id="menu">
78{% block menu %}
79
80{# spaces between li and a elements breaks layout #}
81
82<ul id="nav">
83 {% if user.is_authenticated %}
84  <li><a href="#desk#" class="blue">{% trans "Desk" %}</a></span>
85   <ul>
86    <li><a href="{% url telemeta-desk-lists %}">{% trans "Lists" %}</a></li>
87    <li><a href="{% url telemeta-desk-profile user.username %}">{% trans "Profile" %}</a></li>
88    <li><a href="{% url telemeta-desk-home %}">{% trans "Home" %}</a></li>
89   </ul>
90  </li>
91 {% else %}
92  <li><a href="{% url telemeta-home %}" class="blue">{% trans "Home" %}</a></li>
93 {% endif %}
94 <li><a href="#archives#" class="green">{% trans "Archives" %}</a>
95  <ul>
96    <li><a href="{% url telemeta-fonds %}">{% trans "Fonds" %}</a></li>
97    <li><a href="{% url telemeta-corpus %}">{% trans "Corpus" %}</a></li>
98    <li><a href="{% url telemeta-collections %}">{% trans "Collections" %}</a></li>
99    <li><a href="{% url telemeta-items %}">{% trans "Items" %}</a></li>
100  </ul>
101  <div class="clear"></div>
102 </li>
103 <li><a href="{% url telemeta-geo-continents %}" class="yellow">{% trans "Geo Navigator" %}</a></li>
104 <li><a href="{% url telemeta-search-criteria %}" class="orange">{% trans "Advanced search" %}</a></li>
105 {% if user.is_authenticated %}
106 <li><a href="{% url telemeta-users %}" class="red">{% trans "Users" %}</a></li>
107 {% endif %}
108 {% if user.is_staff %}
109 <li><a href="#admin#" class="violet">{% trans "Admin" %}</a>
110 <ul>
111 <li><a href="{% url telemeta-admin-general %}">{% trans "General" %}</a></li>
112 <li><a href="{% url telemeta-admin-enumerations %}">{% trans "Enumerations" %}</a></li>
113 <li><a href="{% url telemeta-instrument-edit %}">{% trans "Instruments" %}</a></li>
114 </ul>
115 <div class="clear"></div>
116 </li>
117{% endif %}
118</ul>
119<div class="clear"></div>
120
121{% endblock %}
122</div>
123</div>
124{% endblock header %}
125
126{% block postman_menu %}
127{% endblock postman_menu %}
128
129<div id="content">
130    <table id="content_header"><tr>
131            <td class="leftcol"><h1>{% block title %}{% endblock %}</h1></td>
132            <td class="rightcol">{% block title_buttons %}{% endblock %}</td>
133    </tr></table>
134{% block content %}{% endblock %}
135<div class="nett"></div>
136{% block delete %}{% endblock %}
137</div>
138
139{% block body %}
140{% endblock body %}
141
142{% block footer %}
143<div id="footer">
144 <hr />
145 <table width="100%">
146  <tr>
147   <td>
148    <a id="telemeta_powered" href="{% telemeta_url %}" target="_blank"><img src="{% url telemeta-images "logo_mini_2.png" %}" height="30" width="93"
149   alt="Telemeta Powered"/></a>
150    <p class="left">
151    {% trans "Powered by" %} <a href="{% telemeta_url %}" target="_blank"><strong>Telemeta {% telemeta_version %}</strong></a><br />
152    {% trans "By" %} <a href="http://www.parisson.com/">Parisson SARL</a>
153    </p>
154   </td>
155   <td>
156    <p class="center">
157    {% trans "Usage of the archives in the respect of cultural heritage of the original communities." %}
158    </p>
159   </td>
160   <td>
161    <p class="right">
162    Copyright &copy; {% current_year %} {% organization %}<br />
163    <a href="{% url telemeta-flatpage "legal_notices" %}">{% trans "Legal notices" %}</a>
164    </p>
165   </td>
166  </tr>
167 </table>
168</div>
169{% endblock %}
170</div>
171{% endblock layout %}
172
173{% block analytics %}
174{% endblock analytics %}
175
176</body>
177</html>
Note: See TracBrowser for help on using the repository browser.