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

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

add extra blocks, horizontal window for children in admin

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