Move custom photologue to seperate app

This commit is contained in:
Alexandre Iooss 2021-09-23 10:17:01 +02:00
parent 0edbc79023
commit 59b95898f8
13 changed files with 59 additions and 13 deletions

View file

@ -1,36 +0,0 @@
{% extends "photologue/root.html" %}
{% load i18n %}
{% block title %}{% trans "Latest photo galleries" %}{% endblock %}
{% block content %}
<div class="row">
<div class="col-lg-12">
<h1>{% trans "Latest photo galleries" %}</h1>
</div>
</div>
<div class="row">
<aside class="col-md-2">
<h5>{% trans "Filter by year" %}</h5>
<div class="list-group">
{% for date in date_list %}
<a class="list-group-item list-group-item-action" href="{% url 'photologue:pl-gallery-archive-year' date.year %}">{{ date|date:"Y" }}</a>
{% endfor %}
</div>
</aside>
<main class="col-md-10">
{% if latest %}
<div class="row mb-2">
{% for gallery in latest %}
<div class="col-md-3">
{% include "photologue/includes/gallery_sample.html" %}
</div>
{% endfor %}
</div>
{% else %}
<p>{% trans "No galleries were found" %}.</p>
{% endif %}
</main>
</div>
{% endblock %}