templates/index: Directly referencing config.REFRESH_RATE

Fixes https://github.com/voxpupuli/puppetboard/issues/213

Also changing the 'if' condition from '!=' to '>' since this application
can only work with unsigned integers
This commit is contained in:
corey.hammerton
2016-02-01 19:59:24 -05:00
parent fd29fe4261
commit f9edda82b4
2 changed files with 2 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
{% extends 'layout.html' %}
{% import '_macros.html' as macros %}
{% block content %}
{% if refreshrate != 0 %}
<meta http-equiv="refresh" content="{{refreshrate}}">
{% if config.REFRESH_RATE > 0 %}
<meta http-equiv="refresh" content="{{config.REFRESH_RATE}}">
{% endif %}
<div class="ui vertical grid">
<div class="four column row">