Commit 0192e5d69b78d8f71a394793509e3c8eddbf24b3

Authored by Zambom
1 parent 4536c27f

Updating category breadcrumbg redirect page

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
... ... @@ -203,7 +203,7 @@
203 203  
204 204 $('html, body').animate({
205 205 scrollTop: $("#" + cat_slug).parent().offset().top
206   - }, 2000);
  206 + }, 1000);
207 207 }
208 208 });
209 209 </script>
... ...
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 %}
... ...