Browse Source

added a key checker on the varname list.

root 6 years ago
parent
commit
f3ed31f364
1 changed files with 3 additions and 0 deletions
  1. 3 0
      status.html

+ 3 - 0
status.html

@@ -100,6 +100,7 @@ data-trend="{{ data['style'][key]['trend'] }}"
 {% if "linkhtml" in data['style'][key] %}
 {% if data['style'][key]['linkhtml'] == 'true' %}
 {% if "server" in data %}
+{% if data['style'][key]['ref'] in data['varname'] %}
 onclick="window.open( '{{ data["server"] }}#module=graph&{{ data['varname'][data['style'][key]['ref']] }}&experiment=-&window=86400&module=graph&virtual=srctree&srctree=&infomod=legend', '_blank');"
 {% else %}
 {% end %}
@@ -107,6 +108,8 @@ onclick="window.open( '{{ data["server"] }}#module=graph&{{ data['varname'][data
 {% end %}
 {% else %}
 {% end %}
+{% else %}
+{% end %}
 
 
 {% if "ref" in data['style'][key] %}