Lots of stuff
- Imagestore gallery - remember me fixed - youtube filter - password change option
This commit is contained in:
65
imagestore/templates/imagestore/image_list.html
Normal file
65
imagestore/templates/imagestore/image_list.html
Normal file
@@ -0,0 +1,65 @@
|
||||
{% extends "imagestore/base.html" %}
|
||||
{% load i18n %}
|
||||
{% load thumbnail %}
|
||||
{% load url from future %}
|
||||
|
||||
{% block imagestore-breadcrumb %}
|
||||
{% with "li" as scope_tag %}
|
||||
{% include "imagestore/image-scope.html" %}
|
||||
{% endwith %}
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}
|
||||
{% include "imagestore/image-scope.html" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block imagestore-info %}
|
||||
{% if view_user and IMAGESTORE_SHOW_USER %}
|
||||
{% with user=view_user %}
|
||||
{% include "imagestore/user_info.html" %}
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
{% if album and IMAGESTORE_SHOW_USER %}
|
||||
{% with user=album.user %}
|
||||
{% include "imagestore/user_info.html" %}
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block controls %}
|
||||
{% if album %}
|
||||
{% if request.user == album.user or perms.imagestore.moderate_albums %}
|
||||
<li><a href='{% url 'imagestore:update-album' pk=album.pk %}'>{% trans "Edit album" %}</a></li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block imagestore_content %}
|
||||
<h1>
|
||||
{% include "imagestore/image-scope.html" %}
|
||||
</h1>
|
||||
{% include "imagestore/pagination.html" %}
|
||||
<div id="image-thumbnails">
|
||||
{% for image in image_list %}
|
||||
<div class='image-preview'>
|
||||
{% thumbnail image.image "120x120" crop="center" as im %}
|
||||
<a class="thumb" rel='gallery-image[ilist]' href="{{ image.image.url }}">
|
||||
<img class="preview" {% if image.title %} alt="{{ image.title }}" {% endif %} src="{{ im.url }}">
|
||||
</a>
|
||||
<a href="{% include "imagestore/image-href.html" %}">
|
||||
{% if image.title %}
|
||||
<br><span class='image-title'>{{ image.title }}</span>
|
||||
{% else %}
|
||||
{% trans 'Info' %}
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endthumbnail %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% include "imagestore/pagination.html" %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user