Révision bf5d84a3
Ajouté par Serghei Mihai (congés, retour 15/05) il y a plus de 7 ans
corbo/templates/corbo/category_detail.html | ||
---|---|---|
4 | 4 |
{% block breadcrumb %} |
5 | 5 |
{{ block.super }} |
6 | 6 |
{% if category %} |
7 |
<a href='{% url "view_category" pk=category.pk %}'>{{ category }}</a>
|
|
7 |
<a href='{% url "view_category" slug=category.slug %}'>{{ category }}</a>
|
|
8 | 8 |
{% endif %} |
9 | 9 |
{% endblock %} |
10 | 10 |
|
11 | 11 |
{% block appbar %} |
12 | 12 |
<h2>{{ object.name }}</h2> |
13 |
<a href="{% url 'delete_category' object.id %}" rel="popup">{% trans 'Delete' %}</a>
|
|
14 |
<a href="{% url 'edit_category' object.id %}" rel="popup">{% trans 'Edit' %}</a>
|
|
15 |
<a href="{% url 'add_announce' pk=object.pk %}">{% trans 'New announce' %}</a>
|
|
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 | 16 |
{% endblock %} |
17 | 17 |
|
18 | 18 |
{% block content %} |
Formats disponibles : Unified diff
use unique category slugs in urls (#13791)