source: telemeta/templates/telemeta/base.html @ 13ff598

lamlam2
Last change on this file since 13ff598 was 13ff598, checked in by yomguy <yomguy@…>, 23 months ago

add lam logo

  • Property mode set to 100644
File size: 6.0 KB
Line 
1<!DOCTYPE html>
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="{{ STATIC_URL }}telemeta/images/logo_lam.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 %}">{% 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>
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 <li><a href="#archives#" class="green">{% trans "Archives" %}</a>
98  <ul>
99    <li><a href="{% url telemeta-fonds %}">{% trans "Fonds" %}</a></li>
100    <li><a href="{% url telemeta-corpus %}">{% trans "Corpus" %}</a></li>
101    <li><a href="{% url telemeta-collections %}">{% trans "Collections" %}</a></li>
102    <li><a href="{% url telemeta-items %}">{% trans "Items" %}</a></li>
103  </ul>
104 </li>
105
106 <li><a href="{% url telemeta-geo-continents %}" class="yellow">{% trans "Geo Navigator" %}</a></li>
107
108 <li><a href="{% url telemeta-search-criteria %}" class="orange">{% trans "Advanced search" %}</a></li>
109 {% if user.is_authenticated %}
110 <li><a href="{% url telemeta-users %}" class="red">{% trans "Users" %}</a></li>
111 {% endif %}
112 {% if user.is_staff %}
113 <li><a href="#admin#" class="violet">{% trans "Admin" %}</a>
114 <ul>
115 <li><a href="{% url telemeta-admin-general %}">{% trans "General" %}</a></li>
116 <li><a href="{% url telemeta-admin-enumerations %}">{% trans "Enumerations" %}</a></li>
117 <li><a href="{% url telemeta-instrument-edit %}">{% trans "Instruments" %}</a></li>
118 </ul>
119 </li>
120{% endif %}
121</ul>
122
123{% endblock menu %}
124</div>
125</div>
126{% endblock header %}
127
128{% block postman_menu %}
129{% endblock postman_menu %}
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 %}{% endblock %}
137<div class="nett"></div>
138{% block delete %}{% endblock %}
139</div>
140
141{% block body %}
142{% endblock body %}
143
144{% block footer %}
145<div id="footer">
146 <hr />
147 <table width="100%">
148  <tr>
149   <td>
150    <a id="telemeta_powered" href="{% telemeta_url %}" target="_blank"><img src="{% url telemeta-images "logo_mini_2.png" %}"
151   alt="Telemeta Powered"/></a>
152    <p class="left">
153    {% trans "Powered by" %} <a href="{% telemeta_url %}" target="_blank"><strong>Telemeta {% telemeta_version %}</strong></a><br />
154    {% trans "By" %} <a href="http://www.parisson.com/">Parisson SARL</a>
155    </p>
156   </td>
157   <td>
158    <p class="center">
159    {% trans "Usage of the archives in the respect of cultural heritage of the original communities." %}
160    </p>
161   </td>
162   <td>
163    <p class="right">
164    Copyright &copy; {% current_year %} {% organization %}<br />
165    <a href="{% url telemeta-flatpage "legal_notices" %}">{% trans "Legal notices" %}</a>
166    </p>
167   </td>
168  </tr>
169 </table>
170</div>
171{% endblock %}
172</div>
173{% endblock layout %}
174
175{% block analytics %}
176{% endblock analytics %}
177
178</body>
179</html>
Note: See TracBrowser for help on using the repository browser.