Projet

Général

Profil

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

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

1
{% extends 'corbo/base.html' %}
2
{% load i18n %}
3

    
4
{% block appbar %}
5
<h2>{% trans "Categories" %}</h2>
6
<a href="{% url 'add_category' %}" rel='popup'>{% trans 'New category' %}</a>
7
{% endblock %}
8

    
9
{% block content %}
10
<div id="management">
11
  <ul class='objects-list single-links'>
12
    {% for obj in object_list %}
13
    <li class='category'>
14
        <a href="{% url 'view_category' slug=obj.slug %}">{{ obj.name }} /
15
          {% blocktrans count announces_number=obj.get_announces_count %}
16
          {{ announces_number }} announce
17
          {% plural %}
18
          {{ announces_number }} announces
19
          {% endblocktrans %} /
20
          {% blocktrans count subscriptions_number=obj.get_subscriptions_count %}
21
          {{ subscriptions_number }} subscription
22
          {% plural %}
23
          {{ subscriptions_number }} subscriptions
24
          {% endblocktrans %}
25
        </a>
26
    </li>
27
    {% empty %}
28
<div class="big-msg-info">
29
  {% blocktrans %}
30
  There are no categories yet. Click on "New category" button in the top
31
  right of the page to add a first one.
32
  {% endblocktrans %}
33
  {% endfor %}
34
  </ul>
35
</div>
36
  {% endblock %}
(8-8/11)