a383a4305b
- Fixed #737 (Motion edit link is missing for normal delegate users) - Fixed motion pdf filename errors (now use motion-<identifier>.pdf or if no identifier: motion-<title>.pdf with using djangos slugify for special chars in title) - Fixed motion pdf build error if there is an unauthorized version - Enlarge max_length of event name field to 50 chars. - Align participant import instruction with motion import page. - Added title field to particpants-demo_en.csv. - participant overview: Show comma after last_name only if first_name and last_name are given. - Changed all page titles to "<specific action page> - <event-name>" (moved event-name to the end of the string) - Updated EN tranlation string. - Updated DE translations.
50 lines
2.0 KiB
HTML
50 lines
2.0 KiB
HTML
{% extends 'base.html' %}
|
||
|
||
{% load i18n %}
|
||
{% load tags %}
|
||
|
||
{% block title %}{% trans 'Files' %} – {{ block.super }}{% endblock %}
|
||
|
||
{% block content %}
|
||
<h1>{% trans 'Files' %}
|
||
<small class="pull-right">
|
||
{% if perms.mediafile.can_upload %}
|
||
<a href="{% url 'mediafile_create' %}" class="btn btn-mini btn-primary" rel="tooltip" data-original-title="{% trans 'New file' %}"><i class="icon-plus icon-white"></i> {% trans "New" %}</a>
|
||
{% endif %}
|
||
</small>
|
||
</h1>
|
||
<table class="table table-striped table-bordered">
|
||
<tr>
|
||
<th>{% trans 'Title' %}</th>
|
||
<th>{% trans 'Type' %}</th>
|
||
<th>{% trans 'Size' %}</th>
|
||
<th>{% trans 'Upload time' %}</th>
|
||
<th>{% trans 'Uploaded by' %}</th>
|
||
{% if perms.mediafile.can_manage %}
|
||
<th class="mini_width">{% trans "Actions" %}</th>
|
||
{% endif %}
|
||
</tr>
|
||
{% for mediafile in mediafile_list %}
|
||
<tr>
|
||
<td><a href="{{ mediafile.mediafile.url }}">{{ mediafile }}</a></td>
|
||
<td>{{ mediafile.filetype }}</td>
|
||
<td>{{ mediafile.get_filesize }}</td>
|
||
<td>{{ mediafile.timestamp }}</td>
|
||
<td><a href="{% model_url mediafile.uploader 'view' %}">{{ mediafile.uploader }}</a></td>
|
||
{% if perms.mediafile.can_manage %}
|
||
<td>
|
||
<span style="width: 1px; white-space: nowrap;">
|
||
<a href="{% model_url mediafile 'update' %}" rel="tooltip" data-original-title="{% trans 'Edit' %}" class="btn btn-mini"><i class="icon-pencil"></i></a>
|
||
<a href="{% model_url mediafile 'delete' %}" rel="tooltip" data-original-title="{% trans 'Delete' %}" class="btn btn-mini"><i class="icon-remove"></i></a>
|
||
</span>
|
||
</td>
|
||
{% endif %}
|
||
</tr>
|
||
{% empty %}
|
||
<tr>
|
||
<td colspan="6"><i>{% trans 'No files available.' %}</i></td>
|
||
</tr>
|
||
{% endfor %}
|
||
</table>
|
||
{% endblock %}
|