Commit 93d94683 authored by Serge S. Koval's avatar Serge S. Koval

Fixed #223 - blocks in file admin template

parent 8f259de4
......@@ -3,6 +3,7 @@
{% import 'admin/actions.html' as actionslib with context %}
{% block body %}
{% block breadcrums %}
<ul class="breadcrumb">
<li>
<a href="{{ get_dir_url('.index', path=None) }}">{{ _gettext('Root') }}</a>
......@@ -18,10 +19,13 @@
</li>
{% endif %}
</ul>
{% endblock %}
{% block file_list_table %}
<table class="table table-striped table-bordered model-list">
<thead>
<tr>
{% block list_header scoped %}
{% if actions %}
<th class="span1">
<input type="checkbox" name="rowtoggle" class="action-rowtoggle" />
......@@ -30,10 +34,12 @@
<th class="span1">&nbsp;</th>
<th>Name</th>
<th>Size</th>
{% endblock %}
</tr>
</thead>
{% for name, path, is_dir, size in items %}
<tr>
{% block list_row scoped %}
{% if actions %}
<td>
{% if not is_dir %}
......@@ -42,6 +48,7 @@
</td>
{% endif %}
<td>
{% block list_row_actions scoped %}
{% if admin_view.can_rename and path and name != '..' %}
<a class="icon" href="{{ url_for('.rename', path=path) }}">
<i class="icon-pencil"></i>
......@@ -66,6 +73,7 @@
</form>
{% endif %}
{%- endif -%}
{% endblock %}
</td>
{% if is_dir %}
<td colspan="2">
......@@ -81,9 +89,12 @@
{{ size }}
</td>
{% endif %}
{% endblock %}
</tr>
{% endfor %}
</table>
{% endblock %}
{% block toolbar %}
<div class="btn-toolbar">
{% if admin_view.can_upload %}
<div class="btn-group">
......@@ -101,8 +112,10 @@
</div>
{% endif %}
</div>
{% endblock %}
{% block actions %}
{{ actionslib.form(actions, url_for('.action_view')) }}
{% endblock %}
{% endblock %}
{% block tail %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment