Project

General

Profile

Download (1.54 KB) Statistics
| Branch: | Tag: | Revision:

root / corbo / templates / corbo / announce_list.html @ d0bd7a5a

1 a2aba77e Serghei Mihai
{% 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 39a1008d Serghei Mihai
<a class="extra-actions-menu-opener"></a>
14 a2aba77e Serghei Mihai
<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 06620ee7 Serghei Mihai
  <a href="{% url 'view_announce' pk=announce.id %}">{{ announce.title }}</a>
30 a2aba77e Serghei Mihai
  <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 d0bd7a5a Frédéric Péters
{% include "gadjo/pagination.html" %}
42 a2aba77e Serghei Mihai
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 %}