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
8657e6b1
Commit
8657e6b1
authored
Aug 24, 2013
by
fred
Browse files
perfomance: create template tag for metanav template
parent
1af0138c
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb/paniktags/templatetags/paniktags.py
View file @
8657e6b1
...
...
@@ -32,3 +32,7 @@ def emission_detail(context, date=None):
@
register
.
inclusion_tag
(
'includes/player.html'
,
takes_context
=
False
)
def
player
():
return
{
'unique'
:
uuid
.
uuid4
()}
@
register
.
inclusion_tag
(
'includes/metaNav.html'
,
takes_context
=
False
)
def
metanav
():
return
{}
panikweb_templates/templates/base.html
View file @
8657e6b1
...
...
@@ -23,7 +23,7 @@
</head>
<body
id=
"{% block bodyID %}{% endblock %}"
>
{% block meta %}
<div
id=
"metaNav"
>
{%
include "includes/
meta
N
av
.html"
%}
</div>
{% endblock %}
{% block meta %}
<div
id=
"metaNav"
>
{% meta
n
av %}
</div>
{% endblock %}
<div
id=
"Commons"
>
<div
id=
"Panik"
class=
"center"
>
...
...
Write
Preview
Supports
Markdown
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