Moved navigationbar path adaption to pages
This commit is contained in:
parent
36071e4de0
commit
a5a3b8626e
2
mycreole
2
mycreole
@ -1 +1 @@
|
|||||||
Subproject commit 68e89f85a1a9ea0cd9140ebe8c31ecd0583b0a3a
|
Subproject commit e093c48e91aa378ac87bb32e90bc391a81024acb
|
@ -41,6 +41,13 @@ def context_adaption(context, request, **kwargs):
|
|||||||
|
|
||||||
def navigationbar(context, request, caller_name, **kwargs):
|
def navigationbar(context, request, caller_name, **kwargs):
|
||||||
bar = context[context.NAVIGATIONBAR]
|
bar = context[context.NAVIGATIONBAR]
|
||||||
|
if caller_name == "mycreole-attachments":
|
||||||
|
next = kwargs.get("next")
|
||||||
|
if next.count("/") >= 2:
|
||||||
|
path = next[next.find("/", 2) + 1:]
|
||||||
|
else:
|
||||||
|
path = ""
|
||||||
|
else:
|
||||||
path = kwargs.get("rel_path", "")
|
path = kwargs.get("rel_path", "")
|
||||||
while len(path) > 0 and path != os.path.sep:
|
while len(path) > 0 and path != os.path.sep:
|
||||||
bar.append_entry(*navigation_entry_parameters(request, path))
|
bar.append_entry(*navigation_entry_parameters(request, path))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user