Projet

Général

Profil

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

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

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 href="{% url 'delete_category' slug=object.slug %}" rel="popup">{% trans 'Delete' %}</a>
14
<a href="{% url 'edit_category' slug=object.slug %}" rel="popup">{% trans 'Edit' %}</a>
15
<a href="{% url 'add_announce' slug=object.slug %}">{% trans 'New announce' %}</a>
16
{% endblock %}
17

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

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

    
44
{% endblock %}
(6-6/11)