Projet

Général

Profil

Télécharger (1,47 ko) Statistiques
| Branche: | Tag: | Révision:

root / corbo / templates / corbo / category_detail.html @ aa90f191

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>{{ object.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=object.slug %}" rel="popup">{% trans 'Delete' %}</a>
19
<a href="{% url 'edit_category' slug=object.slug %}" rel="popup">{% trans 'Edit' %}</a>
20
<a href="{% url 'add_announce' slug=object.slug %}">{% trans 'New announce' %}</a>
21
{% endblock %}
22

    
23
{% block content %}
24
<div id="management">
25
<ul class='objects-list single-links'>
26
{% for announce in announces %}
27
<li class="{% if not announce.is_published %}unpublished{% endif %}">
28
  <a href="{% url 'edit_announce' announce.id %}">{{ announce.title }}</a>
29
  <div class="datetime">
30
    {% if announce.publication_time %}
31
    {% blocktrans with mtime=announce.publication_time|date:'DATETIME_FORMAT' %}
32
    Published on {{ mtime }}
33
    {% endblocktrans %}
34
    {% endif %}
35
  </div>
36
</li>
37
{% endfor %}
38
</ul>
39

    
40
{% if not announces %}
41
<div class="big-msg-info">
42
  {% blocktrans %}
43
  This category doesn't have any announces yet. Click on "New announce" button in the top
44
  right of the page to add a first one.
45
  {% endblocktrans %}
46
</div>
47
{% endif %}
48

    
49
{% endblock %}
(6-6/12)