Skip to content
Browse files

Use uibase.html for mmctlui.

  • Loading branch information...
1 parent 7a5f67c commit a1dc62dcf8bee8677ac6129ef0ab8c274e44dc92 @mbr committed
View
2 mmctl/mmctlui/templates/index.html
@@ -1,4 +1,4 @@
-{% extends "base.html" %}
+{% extends "uibase.html" %}
{% block title %}mmctl{% endblock %}
View
2 mmctl/mmctlui/templates/login.html
@@ -1,4 +1,4 @@
-{% extends "base.html" %}
+{% extends "uibase.html" %}
{% block title %}mmctl: Login{% endblock %}
View
7 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 %}
View
4 mmctl/templates/base.html
@@ -24,9 +24,9 @@
{% endassets %}
<script type="text/javascript">
+{% block jsglobal %}
$SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
- $AUTH_COOKIE_NAME = {{config['AUTH_COOKIE_NAME']|tojson|safe }};
- $AUTH_COOKIE_PATH = {{url_for('mmctlui.index')|tojson|safe}};
+{% endblock %}
</script>
{% endblock %}

0 comments on commit a1dc62d

Please sign in to comment.
Something went wrong with that request. Please try again.