source: telemeta/templates/telemeta/profile_detail.html @ b6c6871

cremcrem2devdev2diademsdj1.6feature/breadcrumbsfeature/ts-0.5feature/ts-0.5.4feature/writecacheformagenericinstru_searchlamlam2mapsv3mergenlivemultiproductionrelease/1.4.4sabiodsecurityserversocialstoragetelecastertest
Last change on this file since b6c6871 was b6c6871, checked in by yomguy <yomguy@…>, 3 years ago
  • fix some wrong user properties
  • NEW DEP: add solr-thumbnail for resource related media
  • add static media handling for solr and various cache
  • SECURITY: you need to move your TELEMETA_EXPORT_CACHE_DIR from TELEMETA_CACHE_DIR cache. See example/sandbox_sqlite/settings.py
  • Property mode set to 100644
File size: 3.5 KB
Line 
1{% extends "telemeta/base.html" %}
2{% load i18n %}
3{% load telemeta_utils %}
4       
5{% block head_title %}{% trans "User Profile" %} : {{ usr.username }}{% endblock %}
6
7{% block title %}
8 <img src="{% url telemeta-images "user_red.png" %}" alt="user" style="vertical-align:middle" /> {% trans "User profile" %} : {{ usr.username }}
9{% endblock %}
10
11{% block content %}
12  <div id="module-set" style="width: 33%">
13  {% block modules %}
14  <div class="module">
15    <h3><img src="{% url telemeta-images "module_playlist.png" %}" alt="playlists" style="vertical-align:middle" />
16    {% trans "Playlists" %}</h3>
17    <ul class="playlist">
18    {% for p in playlists %}
19    <li>
20        <b>{{ p.playlist.title }}</b>
21        <br />
22        <span class="info">{{ p.playlist.description }}</span>
23    </li>
24    {% endfor %}
25    </ul>
26   </div>
27
28    {% block module_user_revisions %}
29    {% with user_revisions as revisions and "Last changes" as title %}
30    {% include "telemeta/inc/module_user_revisions.html" %}
31    {% endwith %}
32    {% endblock %}
33
34  {% endblock %}
35 </div>
36
37   <div class="infos" style="padding-top: 1em; width: 66%">
38     <dl class="listing">
39      <dt>{% trans "First Name" %}</dt><dd>{{ usr.first_name }}</dd>
40      <dt>{% trans "Last Name" %}</dt><dd>{{ usr.last_name }}</dd>
41      <dt>{% trans "Email" %}</dt><dd>{{ usr.email }}</dd>
42     
43      <dt>{% trans "Institution" %}</dt><dd>{% if profile %}{{ profile.institution }}{% endif %}</dd>
44      <dt>{% trans "Department" %}</dt><dd>{% if profile %}{{ profile.department }}{% endif %}</dd>
45      <dt>{% trans "Function" %}</dt><dd>{% if profile %}{{ profile.function }}{% endif %}</dd>
46      <dt>{% trans "Attachment" %}</dt><dd>{% if profile %}{{ profile.attachment }}{% endif %}</dd>
47      <dt>{% trans "Address" %}</dt><dd>{% if profile %}{{ profile.address }}{% endif %}</dd>
48      <dt>{% trans "Telephone" %}</dt><dd>{% if profile %}{{ profile.telephone }}{% endif %}</dd>
49      <dt>{% trans "Expiration date" %}</dt><dd>{% if profile %}{{ profile.expiration_date }}{% endif %}</dd>
50     
51      <dt>{% trans "Is staff" %}</dt><dd>{{ usr.is_staff }}</dd>
52      <dt>{% trans "Is superuser" %}</dt><dd>{{ usr.is_superuser }}</dd>
53      <dt>{% blocktrans count user.groups.all.count as counter %}Group{% plural %}Groups{% endblocktrans %}</dt><dd>{% for group in usr.groups.all %}{{ group }} {% endfor %}</dd>
54      <dt>{% trans "Last login" %}</dt><dd>{{ usr.last_login }}</dd>
55      {% if user.is_authenticated and user.username == usr.username %}
56      <dt>{% trans "Language" %}</dt><dd><form id="setlang" action="/i18n/setlang/" method="post">{% csrf_token %}
57        <input name="next" type="hidden" value="" />
58          <select name="language">
59            {% for lang in LANGUAGES %}
60             <option {% if lang.0 == LANGUAGE_CODE %}selected{% endif %} value="{{ lang.0 }}">{{ lang.1 }}</option>
61            {% endfor %}
62          </select>
63          <a href="#" class="component_icon button icon_ok" 
64            onclick="document.getElementById('setlang').submit(); return false;">{% trans "Apply" %}</a>
65         </form>
66        </dd>
67      {%  endif %}
68     </dl>
69    </div>
70       
71    {% if user.is_authenticated and user.username == usr.username or user.is_staff %}
72    <a href="{% url telemeta-profile-edit usr.username %}" class="component_icon button icon_edit">{% trans "Edit" %}</a>
73    {%  endif %}
74    {% if user.is_authenticated and user.username == usr.username %}
75    <a href="{% url telemeta-password-change %}" class="component_icon button icon_login">{% trans "Change password" %}</a>
76    {%  endif %}
77 
78  </div>
79{% endblock %}
80
Note: See TracBrowser for help on using the repository browser.