--- a/src/hdalab/templates/renkan_list.html Wed May 27 14:06:37 2015 +0200
+++ b/src/hdalab/templates/renkan_list.html Fri Jun 19 18:25:35 2015 +0200
@@ -46,7 +46,9 @@
<p>{% trans 'Title' %} : <input type="text" name="title" value="{{ title }}"/></p>
<p>{% trans 'Modification date' %} : {% trans 'begin' %} <input type="text" name="startdate" value="{{ startdate }}" class="date" /> -
{% trans 'end' %} : <input type="text" name="enddate" value="{{ enddate }}" class="date" /></p>
+ {% if show_username %}
<p>{% trans 'Username' %} : <input type="text" name="username" value="{{ username }}"/></p>
+ {% endif %}
{% if not hide_favorite %}
<p>{% trans 'Favorite' %} : <input type="checkbox" id="filter-favorite-chkbx" {% if favorite >= 1 %} checked="checked" {% endif %} value="{{favorite}}" /><input type="hidden" id="filter-favorite" name="favorite" value="{{favorite}}"/></p>
{% endif %}
@@ -61,8 +63,10 @@
<th><a href="?sort=favorite&order={% if sort_param == 'favorite' %}{{ opposite }}{% else %}desc{% endif %}{{ filters }}">{% trans 'Fav.' %}</a>
{% if sort_param == 'favorite' %}<span class="ui-icon {% if opposite == 'asc' %}ui-icon-triangle-1-s{% else %}ui-icon-triangle-1-n{% endif %}"></span>{% endif %}</th>
{% endif %}
+ {% if show_username %}
<th><a href="?sort=user&order={% if sort_param == 'user' %}{{ opposite }}{% else %}desc{% endif %}{{ filters }}">{% trans 'User' %}</a>
{% if sort_param == 'user' %}<span class="ui-icon {% if opposite == 'asc' %}ui-icon-triangle-1-s{% else %}ui-icon-triangle-1-n{% endif %}"></span>{% endif %}</th>
+ {% endif %}
<th><a href="?sort=date&order={% if sort_param == 'date' %}{{ opposite }}{% else %}desc{% endif %}{{ filters }}">{% trans 'Modification date' %}</a>
{% if sort_param == 'date' %}<span class="ui-icon {% if opposite == 'asc' %}ui-icon-triangle-1-s{% else %}ui-icon-triangle-1-n{% endif %}"></span>{% endif %}</th>
<th>Preview</th><th>Actions</th></tr>
@@ -75,7 +79,9 @@
{% if not hide_favorite %}
<td>{% if hr.favorite %}<span class="publish-renkan"> </span>{% else %} {% endif %}</td>
{% endif %}
+ {% if show_username %}
<td>{{ r.owner.username }}</td>
+ {% endif %}
<td>{{ r.modification_date|date:"Y-m-d H:i" }}</td>
<td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td>
<td class="renkan_list_actions">