Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
d06dc76f
Commit
d06dc76f
authored
Apr 21, 2017
by
fred
Browse files
topiks: display top page name as meta in sidebar
parent
921f77a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/templates/combo/page_template_sidebar.html
View file @
d06dc76f
...
...
@@ -25,10 +25,10 @@
{% if page.public and not page.exclude_from_navigation %}
{% if page.has_children %}
{% for subpage in page.get_children %}
{% include "combo/topik_menu_item.html" with page=subpage only %}
{% include "combo/topik_menu_item.html" with page=subpage
category=page.title
only %}
{% endfor %}
{% else %}
{% include "combo/topik_menu_item.html" with page=page only %}
{% include "combo/topik_menu_item.html" with page=page
category="Topik"
only %}
{% endif %}
{% endif %}
{% endfor %}
...
...
panikweb_templates/templates/combo/topik_menu_item.html
View file @
d06dc76f
...
...
@@ -17,7 +17,7 @@
<h5
class=
"title"
><a
href=
"{{page.get_online_url}}"
>
{{page.title}}
</a></h5>
</div>
<div
class=
"smooth metas"
>
<span
class=
"categories"
>
{{
page.title
}}
</span>
<span
class=
"categories"
>
{{
category
}}
</span>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment