This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
corbo/corbo/templates/corbo/manage.html

52 lines
1.5 KiB
HTML

{% extends 'corbo/base.html' %}
{% load i18n %}
{% block appbar %}
<h2>{% trans "Categories" %}</h2>
{% if extra_actions %}
<a class="extra-actions-menu-opener"></a>
<ul class="extra-actions-menu">
{% for extra_action in extra_actions %}
<li><a href="{{ extra_action.url }}" rel="popup">{{ extra_action.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
<a href="{% url 'add_category' %}" rel='popup'>{% trans 'New category' %}</a>
<a href="{% url 'subscription-search' %}">{% trans 'Search subscriptions' %}</a>
{% endblock %}
{% block content %}
<div id="management">
{% if object_list %}
<ul class='objects-list single-links'>
{% for obj in object_list %}
<li class='category'>
<a href="{% url 'view_category' slug=obj.slug %}">{{ obj.name }} /
{% blocktrans count announces_number=obj.get_announces_count %}
{{ announces_number }} announce
{% plural %}
{{ announces_number }} announces
{% endblocktrans %} /
{% blocktrans count subscriptions_number=obj.get_subscriptions_count %}
{{ subscriptions_number }} subscription
{% plural %}
{{ subscriptions_number }} subscriptions
{% endblocktrans %}
</a>
</li>
{% endfor %}
</ul>
{% include "gadjo/pagination.html" %}
{% else %}
<div class="big-msg-info">
{% blocktrans %}
There are no categories yet. Click on "New category" button in the top
right of the page to add a first one.
{% endblocktrans %}
</div>
{% endif %}
</div>
{% endblock %}