From f3c6d02173939a9694cdafd2b6323872e51bd3a2 Mon Sep 17 00:00:00 2001 From: Ben Leichter Date: Mon, 19 May 2014 11:00:49 -0400 Subject: [PATCH] modified history tab --- html/explore/index.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/html/explore/index.html b/html/explore/index.html index 060dce85..6030570e 100644 --- a/html/explore/index.html +++ b/html/explore/index.html @@ -6,7 +6,7 @@ - + {% if displayviz %} @@ -495,6 +495,7 @@

+ {% if previous_page != "http://atlas.cid.harvard.edu/" and previous_page != "http://127.0.0.1:8000/" and previous_page != "None" %}
@@ -504,6 +505,7 @@

+ {% endif %} {% if app_name == "product_space" or app_name == "pie_scatter" %}
@@ -1370,7 +1372,7 @@

if(previous_page == "http://atlas.cid.harvard.edu" || previous_page == "http://atlas.cid.harvard.edu/beta" || previous_page == "None" || previous_page == "http://127.0.0.1:8000/"){ - previous_image = "{{ STATIC_URL }}img/default.png"; - } else if(previous_image == "{{ STATIC_URL }}img/empty_static.png"){ - $("#historyTab").css("display", "none"); - } else{ + $("#historyTab").css("display", "none"); + $("#history").css("display", "none"); + console.log("no previous page!"); + }else{ previous_image = "http://atlas.cid.harvard.edu{{ displayImage }}"; $("#historySlide").attr("href", previous_page); } @@ -1570,6 +1572,9 @@

{% include "story/story_forms.html" %}