Project

General

Profile

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

root / corbo / templates / corbo / manage.html @ 8e8b10ae

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

    
4
{% block appbar %}
5
<h2>{% trans "Categories" %}</h2>
6
{% if extra_actions %}
7
<a class="extra-actions-menu-opener"></a>
8
<ul class="extra-actions-menu">
9
  {% for extra_action in extra_actions %}
10
  <li><a href="{{ extra_action.url }}" rel="popup">{{ extra_action.title }}</a></li>
11
  {% endfor %}
12
</ul>
13
{% endif %}
14
<a href="{% url 'add_category' %}" rel='popup'>{% trans 'New category' %}</a>
15
{% endblock %}
16

    
17
{% block content %}
18
<div id="management">
19
 {% if object_list %}
20
  <ul class='objects-list single-links'>
21
    {% for obj in object_list %}
22
    <li class='category'>
23
        <a href="{% url 'view_category' slug=obj.slug %}">{{ obj.name }} /
24
          {% blocktrans count announces_number=obj.get_announces_count %}
25
          {{ announces_number }} announce
26
          {% plural %}
27
          {{ announces_number }} announces
28
          {% endblocktrans %} /
29
          {% blocktrans count subscriptions_number=obj.get_subscriptions_count %}
30
          {{ subscriptions_number }} subscription
31
          {% plural %}
32
          {{ subscriptions_number }} subscriptions
33
          {% endblocktrans %}
34
        </a>
35
    </li>
36
    {% endfor %}
37
  </ul>
38

    
39
  {% include "gadjo/pagination.html" %}
40

    
41
{% else %}
42
<div class="big-msg-info">
43
  {% blocktrans %}
44
  There are no categories yet. Click on "New category" button in the top
45
  right of the page to add a first one.
46
  {% endblocktrans %}
47
</div>
48
{% endif %}
49
</div>
50
{% endblock %}
(10-10/15)