-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
289 additions
and
356 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
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 |
---|---|---|
@@ -1,86 +0,0 @@ | ||
{% extends "base.html" %} | ||
{% load wagtailcore_tags %} | ||
{% load i18n %} | ||
|
||
{% block content %} | ||
<h1 class="page-title"> | ||
<span class="underline"> | ||
{{ page.title }} {{ selected_year }} | ||
</span> | ||
</h1> | ||
{% if minutes %} | ||
<table class="table table-striped"> | ||
{% for minute in minutes %} | ||
<tr> | ||
<td><a href="{{ minute.get_valid_url }}">{{ minute.date|date:"d.m.Y" }}</a></td> | ||
<td> | ||
{% if minute.has_unpublished_changes %} | ||
<span title='{% translate "Page has unpublished changes!" %}' aria-hidden="true">⚠️</span> | ||
{% endif %} | ||
</td> | ||
<td> | ||
{% include "core/label.html" with minutes=minute %} | ||
</td> | ||
<td><a href="{{ minute.get_valid_url }}">{{ minute.title }}</a></td> | ||
<td> | ||
{% if minute.attachments.count > 0 %} | ||
<span class="text-gray" data-toggle="tooltip" data-placement="left" data-container="body" title="{{ minute.attachments.all|join:', ' }}"> | ||
📦 | ||
</span> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% else %} | ||
<p> | ||
{% translate "No minutes available for this year." %} | ||
</p> | ||
{% endif %} | ||
{% if all_years|length > 1 %} | ||
<nav aria-label="Page navigation" class="d-inline-block"> | ||
<ul class="pagination"> | ||
<li class="page-item {% if selected_year == all_years|first %} disabled {% endif %}"> | ||
<a class="page-link" href="{{ minute_list.get_valid_url }}?year={{ all_years|first }}" aria-label="First"> | ||
<span aria-hidden="true">«</span> | ||
</a> | ||
</li> | ||
|
||
{% if all_years|first != year_range|first %} | ||
<li class="page-item disabled"> | ||
<a class="page-link" aria-label="More"> | ||
<span aria-hidden="true">...</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
|
||
{% for paginated_year in year_range %} | ||
<li | ||
{% if selected_year == paginated_year %} | ||
class="page-item active" aria-current="true" | ||
{% else %} | ||
class="page-item" | ||
{% endif %}> | ||
<a class="page-link" href="{{ minute_list.get_valid_url }}?year={{ paginated_year }}"> | ||
{{ paginated_year }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
|
||
{% if all_years|last != year_range|last %} | ||
<li class="page-item disabled"> | ||
<a class="page-link" aria-label="More"> | ||
<span aria-hidden="true">...</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
|
||
<li class="page-item {% if selected_year == all_years|last %} disabled {% endif %}"> | ||
<a class="page-link" href="{{ minute_list.get_valid_url }}?year={{ all_years|last }}" aria-label="Last"> | ||
<span aria-hidden="true">»</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
{% endif %} | ||
{% 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
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
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
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
Oops, something went wrong.