Commit 0192e5d69b78d8f71a394793509e3c8eddbf24b3
1 parent
4536c27f
Exists in
master
and in
3 other branches
Updating category breadcrumbg redirect page
Showing
3 changed files
with
7 additions
and
5 deletions
Show diff stats
subjects/templates/subjects/create.html
... | ... | @@ -17,7 +17,7 @@ |
17 | 17 | {% breadcrumb 'Home' 'subjects:home' %} |
18 | 18 | |
19 | 19 | {% if subject %} |
20 | - {% breadcrumb subject.category 'subjects:index' %} | |
20 | + {% breadcrumb subject.category 'subjects:cat_view' subject.category.slug %} | |
21 | 21 | {% breadcrumb subject 'subjects:view' subject.slug %} |
22 | 22 | |
23 | 23 | {% trans 'Replicate: ' as bread %} |
... | ... | @@ -26,7 +26,7 @@ |
26 | 26 | {% breadcrumb bread_slug 'subjects:create' %} |
27 | 27 | {% endwith %} |
28 | 28 | {% else %} |
29 | - {% breadcrumb slug 'subjects:index' %} | |
29 | + {% breadcrumb slug 'subjects:cat_view' slug %} | |
30 | 30 | {% breadcrumb 'Create Subject' 'subjects:create' %} |
31 | 31 | {% endif %} |
32 | 32 | {% endblock %} | ... | ... |
subjects/templates/subjects/list.html
subjects/templates/subjects/update.html
... | ... | @@ -16,9 +16,11 @@ |
16 | 16 | {% block breadcrumbs %} |
17 | 17 | {{ block.super }} |
18 | 18 | |
19 | - {% breadcrumb subject.category 'subjects:index' %} | |
19 | + {% breadcrumb subject.category 'subjects:cat_view' subject.category.slug %} | |
20 | 20 | {% breadcrumb subject 'subjects:view' subject.slug %} |
21 | - {% with 'Edit '|add:object.slug as bread_slug %} | |
21 | + | |
22 | + {% trans 'Update: ' as bread %} | |
23 | + {% with bread|add:object.name as bread_slug %} | |
22 | 24 | {% breadcrumb bread_slug 'subjects:update' %} |
23 | 25 | {% endwith %} |
24 | 26 | {% endblock %} | ... | ... |