-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewritten uploads as section in admin
- Loading branch information
Showing
4 changed files
with
66 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% extends "admin/base.html" %} | ||
|
||
{% block content %} | ||
<table class="table table-stripped"> | ||
<thead> | ||
<tr> | ||
<th>Превью</th> | ||
<th>Название</th> | ||
<th>Описание</th> | ||
</thead> | ||
<tbody> | ||
{% for entry in entries %} | ||
<tr> | ||
<td> | ||
<a href="{{ url_for('admin.gallery_image_detail', entry_id=entry.id) }}"> | ||
<img class="responsive-image" src="/media/{{ entry.img_category.name }}/thumb/{{ entry.name.hex }}.{{ entry.ext }}"/> | ||
</a> | ||
</td> | ||
<td> | ||
<a href="{{ url_for('admin.gallery_image_detail', entry_id=entry.id) }}"> | ||
{{ entry.title }} | ||
</a> | ||
</td> | ||
<td> | ||
{{ entry.description }} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
|
||
<a href="{{ url_for('admin.gallery_image_detail') }}" | ||
class="btn btn-primary">Загрузить еще картинку</a> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters