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

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

add postman templates

  • Property mode set to 100644
File size: 6.5 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    {% if 'postman'|installed %}
88    {% load postman_tags %}
89    {% postman_unread as unread_count %}
90    <li><a href="{% url postman_inbox %}">{% trans "Messages" %}{% if unread_count %} <strong>({{ unread_count }})</strong>{% endif %}</a></li>
91    {% endif %}
92    <li><a href="{% url telemeta-desk-profile user.username %}">{% trans "Profile" %}</a></li>
93    <li><a href="{% url telemeta-desk-home %}">{% trans "Home" %}</a></li>
94   </ul>
95  </li>
96 {% else %}
97  <li><a href="{% url telemeta-home %}" class="blue">{% trans "Home" %}</a></li>
98 {% endif %}
99 <li><a href="#archives#" class="green">{% trans "Archives" %}</a>
100  <ul>
101    <li><a href="{% url telemeta-fonds %}">{% trans "Fonds" %}</a></li>
102    <li><a href="{% url telemeta-corpus %}">{% trans "Corpus" %}</a></li>
103    <li><a href="{% url telemeta-collections %}">{% trans "Collections" %}</a></li>
104    <li><a href="{% url telemeta-items %}">{% trans "Items" %}</a></li>
105  </ul>
106  <div class="clear"></div>
107 </li>
108 <li><a href="{% url telemeta-geo-continents %}" class="yellow">{% trans "Geo Navigator" %}</a></li>
109 <li><a href="{% url telemeta-search-criteria %}" class="orange">{% trans "Advanced search" %}</a></li>
110 {% if user.is_authenticated %}
111 <li><a href="{% url telemeta-users %}" class="red">{% trans "Users" %}</a></li>
112 {% endif %}
113 {% if user.is_staff %}
114 <li><a href="#admin#" class="violet">{% trans "Admin" %}</a>
115 <ul>
116 <li><a href="{% url telemeta-admin-general %}">{% trans "General" %}</a></li>
117 <li><a href="{% url telemeta-admin-enumerations %}">{% trans "Enumerations" %}</a></li>
118 <li><a href="{% url telemeta-instrument-edit %}">{% trans "Instruments" %}</a></li>
119 </ul>
120 <div class="clear"></div>
121 </li>
122{% endif %}
123</ul>
124<div class="clear"></div>
125
126{% endblock %}
127</div>
128</div>
129{% endblock header %}
130
131<div id="content">
132    <table id="content_header"><tr>
133            <td class="leftcol"><h1>{% block title %}{% endblock %}</h1></td>
134            <td class="rightcol">{% block title_buttons %}{% endblock %}</td>
135    </tr></table>
136    {% block content %}
137    {% endblock %}
138<div class="nett"></div>
139
140{% block delete %}{% endblock %}
141</div>
142
143{% block body %}
144{% endblock body %}
145
146{% block footer %}
147<div id="footer">
148 <hr />
149 <table width="100%">
150  <tr>
151   <td>
152    <a id="telemeta_powered" href="{% telemeta_url %}" target="_blank"><img src="{% url telemeta-images "logo_mini_2.png" %}" height="30" width="93"
153   alt="Telemeta Powered"/></a>
154    <p class="left">
155    {% trans "Powered by" %} <a href="{% telemeta_url %}" target="_blank"><strong>Telemeta {% telemeta_version %}</strong></a><br />
156    {% trans "By" %} <a href="http://www.parisson.com/">Parisson SARL</a>
157    </p>
158   </td>
159   <td>
160    <p class="center">
161    {% trans "Usage of the archives in the respect of cultural heritage of the original communities." %}
162    </p>
163   </td>
164   <td>
165    <p class="right">
166    Copyright &copy; {% current_year %} {% organization %}<br />
167    <a href="{% url telemeta-flatpage "legal_notices" %}">{% trans "Legal notices" %}</a>
168    </p>
169   </td>
170  </tr>
171 </table>
172</div>
173{% endblock %}
174</div>
175{% endblock layout %}
176
177{% block analytics %}
178{% endblock analytics %}
179
180</body>
181</html>
Note: See TracBrowser for help on using the repository browser.