Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
Use uibase.html for mmctlui.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbr committed Jan 4, 2012
1 parent 7a5f67c commit a1dc62d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mmctl/mmctlui/templates/index.html
@@ -1,4 +1,4 @@
{% extends "base.html" %} {% extends "uibase.html" %}


{% block title %}mmctl{% endblock %} {% block title %}mmctl{% endblock %}


Expand Down
2 changes: 1 addition & 1 deletion mmctl/mmctlui/templates/login.html
@@ -1,4 +1,4 @@
{% extends "base.html" %} {% extends "uibase.html" %}


{% block title %}mmctl: Login{% endblock %} {% block title %}mmctl: Login{% endblock %}


Expand Down
7 changes: 7 additions & 0 deletions mmctl/mmctlui/templates/uibase.html
@@ -0,0 +1,7 @@
{% extends "base.html" %}

{% block jsglobal %}
{{super()}}
$AUTH_COOKIE_NAME = {{config['AUTH_COOKIE_NAME']|tojson|safe }};
$AUTH_COOKIE_PATH = {{url_for('mmctlui.index')|tojson|safe}};
{% endblock %}
4 changes: 2 additions & 2 deletions mmctl/templates/base.html
Expand Up @@ -24,9 +24,9 @@
{% endassets %} {% endassets %}


<script type="text/javascript"> <script type="text/javascript">
{% block jsglobal %}
$SCRIPT_ROOT = {{ request.script_root|tojson|safe }}; $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
$AUTH_COOKIE_NAME = {{config['AUTH_COOKIE_NAME']|tojson|safe }}; {% endblock %}
$AUTH_COOKIE_PATH = {{url_for('mmctlui.index')|tojson|safe}};
</script> </script>


{% endblock %} {% endblock %}
Expand Down

0 comments on commit a1dc62d

Please sign in to comment.