projects
/
sommitrealweird.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change / to Home in breadcrumb
[sommitrealweird.git]
/
sommitrealweird
/
bpcms
/
context_processors.py
diff --git
a/sommitrealweird/bpcms/context_processors.py
b/sommitrealweird/bpcms/context_processors.py
index 3668ab008dfdb475cf6400ec7b900b1a1c7318e9..a78976df893f1f919eff7a92b6f959b431bcb3b5 100644
(file)
--- a/
sommitrealweird/bpcms/context_processors.py
+++ b/
sommitrealweird/bpcms/context_processors.py
@@
-101,7
+101,10
@@
def content_submenu(request):
}
def content_breadcrumb(request):
}
def content_breadcrumb(request):
- breadcrumb = [{'url': settings.BPCMS_ROOT, 'title': settings.BPCMS_ROOT},]
+ if settings.BPCMS_ROOT == "/":
+ breadcrumb = [{'url': settings.BPCMS_ROOT, 'title': "Home"}]
+ else:
+ breadcrumb = [{'url': settings.BPCMS_ROOT, 'title': settings.BPCMS_ROOT},]
# find where we are in the tree first
folderpath = request.path
folderpath = re.sub(u'^%s' %(settings.BPCMS_ROOT), '', folderpath)
# find where we are in the tree first
folderpath = request.path
folderpath = re.sub(u'^%s' %(settings.BPCMS_ROOT), '', folderpath)