summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/index.html13
-rw-r--r--templates/thread.html5
2 files changed, 14 insertions, 4 deletions
diff --git a/templates/index.html b/templates/index.html
index 9dec93e0..82d3104e 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -3,11 +3,16 @@
<head>
<meta charset="utf-8">
- {% if config.quick_reply %}
- <script type="text/javascript">
+ <script type="text/javascript">
+ {% if config.quick_reply %}
var new_reply_string = "{{ config.button_reply }}";
- </script>
- {% endif %}
+ {% endif %}
+ {% if not no_post_form %}
+ var active_page = "index";
+ {% else %}
+ var active_page = "ukko";
+ {% endif %}
+ </script>
{% include 'header.html' %}
<title>{{ board.url }} - {{ board.name }}</title>
diff --git a/templates/thread.html b/templates/thread.html
index 4e2a95a1..b8c54dec 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -2,6 +2,11 @@
<html>
<head>
<meta charset="utf-8">
+
+ <script type="text/javascript">
+ var active_page = "thread";
+ </script>
+
{% include 'header.html' %}
<title>{{ board.url }} - {{ board.name }}</title>
</head>