fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some white border.
[edumed.git]
/
catalogue
/
templatetags
/
catalogue_tags.py
diff --git
a/catalogue/templatetags/catalogue_tags.py
b/catalogue/templatetags/catalogue_tags.py
index
c642f18
..
a8d69e6
100755
(executable)
--- a/
catalogue/templatetags/catalogue_tags.py
+++ b/
catalogue/templatetags/catalogue_tags.py
@@
-53,10
+53,11
@@
def lesson_nav(lesson):
root = lesson.section
siblings = Lesson.objects.filter(type='course', level=lesson.level, section=root)
mark_level = False
root = lesson.section
siblings = Lesson.objects.filter(type='course', level=lesson.level, section=root)
mark_level = False
+ link_other_level = True
else:
root = None
siblings = Lesson.objects.filter(type=lesson.type)
else:
root = None
siblings = Lesson.objects.filter(type=lesson.type)
- mark_level =
True
+ mark_level =
link_other_level = lesson.type == 'course'
return {
"lesson": lesson,
"root": root,
return {
"lesson": lesson,
"root": root,