From 3bcf88e842b8616a52dec7744e19073248817812 Mon Sep 17 00:00:00 2001 From: czaks Date: Mon, 24 Jun 2013 08:23:09 -0400 Subject: [PATCH] JS Api: added an active_page variable to make it easier to denote the context from javascript --- templates/index.html | 13 +++++++++---- templates/thread.html | 5 +++++ 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 @@ - {% if config.quick_reply %} - - {% endif %} + {% endif %} + {% if not no_post_form %} + var active_page = "index"; + {% else %} + var active_page = "ukko"; + {% endif %} + {% include 'header.html' %} {{ board.url }} - {{ board.name }} 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 @@ + + + {% include 'header.html' %} {{ board.url }} - {{ board.name }}