From 0192e5d69b78d8f71a394793509e3c8eddbf24b3 Mon Sep 17 00:00:00 2001 From: Zambom Date: Thu, 19 Jan 2017 15:37:29 -0200 Subject: [PATCH] Updating category breadcrumbg redirect page --- subjects/templates/subjects/create.html | 4 ++-- subjects/templates/subjects/list.html | 2 +- subjects/templates/subjects/update.html | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/subjects/templates/subjects/create.html b/subjects/templates/subjects/create.html index 699b366..24c1974 100644 --- a/subjects/templates/subjects/create.html +++ b/subjects/templates/subjects/create.html @@ -17,7 +17,7 @@ {% breadcrumb 'Home' 'subjects:home' %} {% if subject %} - {% breadcrumb subject.category 'subjects:index' %} + {% breadcrumb subject.category 'subjects:cat_view' subject.category.slug %} {% breadcrumb subject 'subjects:view' subject.slug %} {% trans 'Replicate: ' as bread %} @@ -26,7 +26,7 @@ {% breadcrumb bread_slug 'subjects:create' %} {% endwith %} {% else %} - {% breadcrumb slug 'subjects:index' %} + {% breadcrumb slug 'subjects:cat_view' slug %} {% breadcrumb 'Create Subject' 'subjects:create' %} {% endif %} {% endblock %} diff --git a/subjects/templates/subjects/list.html b/subjects/templates/subjects/list.html index fbca9be..ffe0c79 100644 --- a/subjects/templates/subjects/list.html +++ b/subjects/templates/subjects/list.html @@ -203,7 +203,7 @@ $('html, body').animate({ scrollTop: $("#" + cat_slug).parent().offset().top - }, 2000); + }, 1000); } }); diff --git a/subjects/templates/subjects/update.html b/subjects/templates/subjects/update.html index 28a1583..e55835a 100644 --- a/subjects/templates/subjects/update.html +++ b/subjects/templates/subjects/update.html @@ -16,9 +16,11 @@ {% block breadcrumbs %} {{ block.super }} - {% breadcrumb subject.category 'subjects:index' %} + {% breadcrumb subject.category 'subjects:cat_view' subject.category.slug %} {% breadcrumb subject 'subjects:view' subject.slug %} - {% with 'Edit '|add:object.slug as bread_slug %} + + {% trans 'Update: ' as bread %} + {% with bread|add:object.name as bread_slug %} {% breadcrumb bread_slug 'subjects:update' %} {% endwith %} {% endblock %} -- libgit2 0.21.2