1
|
{% extends 'corbo/manage.html' %}
|
2
|
{% load i18n %}
|
3
|
|
4
|
{% block breadcrumb %}
|
5
|
{{ block.super }}
|
6
|
{% if category %}
|
7
|
<a href='{% url "view_category" slug=category.slug %}'>{{ category }}</a>
|
8
|
{% endif %}
|
9
|
{% endblock %}
|
10
|
|
11
|
{% block appbar %}
|
12
|
<h2>{{ category.name }}</h2>
|
13
|
<a class="extra-actions-menu-opener"></a>
|
14
|
<ul class="extra-actions-menu">
|
15
|
<li><a href="{% url 'subscriptions-import' slug=category.slug %}" rel="popup">{% trans 'Import subscriptions' %}</a></li>
|
16
|
</ul>
|
17
|
|
18
|
<a href="{% url 'delete_category' slug=category.slug %}" rel="popup">{% trans 'Delete' %}</a>
|
19
|
<a href="{% url 'edit_category' slug=category.slug %}" rel="popup">{% trans 'Edit' %}</a>
|
20
|
<a href="{% url 'add_announce' slug=category.slug %}">{% trans 'New announce' %}</a>
|
21
|
{% endblock %}
|
22
|
|
23
|
{% block content %}
|
24
|
<div id="management">
|
25
|
{% if object_list %}
|
26
|
<ul class='objects-list single-links'>
|
27
|
{% for announce in object_list %}
|
28
|
<li class="{% if not announce.is_published %}unpublished{% endif %}">
|
29
|
<a href="{% url 'view_announce' pk=announce.id %}">{{ announce.title }}</a>
|
30
|
<div class="datetime">
|
31
|
{% if announce.publication_time %}
|
32
|
{% blocktrans with mtime=announce.publication_time|date:'DATETIME_FORMAT' %}
|
33
|
Published on {{ mtime }}
|
34
|
{% endblocktrans %}
|
35
|
{% endif %}
|
36
|
</div>
|
37
|
</li>
|
38
|
{% endfor %}
|
39
|
</ul>
|
40
|
|
41
|
{% include "gadjo/pagination.html" %}
|
42
|
|
43
|
{% else %}
|
44
|
<div class="big-msg-info">
|
45
|
{% blocktrans %}
|
46
|
This category doesn't have any announces yet. Click on "New announce" button in the top
|
47
|
right of the page to add a first one.
|
48
|
{% endblocktrans %}
|
49
|
</div>
|
50
|
{% endif %}
|
51
|
</div>
|
52
|
{% endblock %}
|