aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/debug_footer.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/debug_footer.html')
-rw-r--r--templates/web/base/debug_footer.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/templates/web/base/debug_footer.html b/templates/web/base/debug_footer.html
new file mode 100644
index 000000000..a1b7fc155
--- /dev/null
+++ b/templates/web/base/debug_footer.html
@@ -0,0 +1,40 @@
+[% IF c.config.STAGING_SITE and c.config.SHOW_DEBUG %]
+
+<hr style="clear: both;">
+
+<ul>
+ <li>cobrand.moniker: [% c.cobrand.moniker %]</li>
+ <li>additional_template_paths: [% additional_template_paths.join(', ') || '--empty--' %]</li>
+ <li>lang_code: [% lang_code %]</li>
+ <li>user.id: [% c.user.id || '--not logged in--' %]</li>
+</ul>
+
+<style type="text/css">
+ #overrides_form {
+ font-size: 80%;
+ }
+ #overrides_form label {
+ float: left;
+ text-align: right;
+ padding-right: 0.5em;
+ width: 12em;
+ }
+
+</style>
+
+<!-- Use a post so that we don't clutter up the url -->
+<form action="" method="post" id="overrides_form" name="overrides_form">
+
+ <label for="_override_clear_all">Clear all overrides:</label>
+ <input type="checkbox" name="_override_clear_all" id="_override_clear_all" value="1"><br>
+
+ [% FOREACH k IN ['cobrand_moniker', 'lang'] %]
+ <label for="override_[% k %]">[% k %]:</label>
+ <input type="text" name="_override_[% k %]" id="override_[% k %]" value="[% c.get_override(k)%]"><br>
+ [% END %]
+
+ <label>&nbsp;</label><input type="submit" value="Change overrides">
+</form>
+
+[% END %]
+