Use the data variable

This commit is contained in:
Oliver Davies 2015-08-10 23:44:07 +01:00
parent 444c93e0c1
commit 0f2c83d995

View file

@ -5,8 +5,7 @@
{% set output, now = '', "now"|date('U') %}
{% for type, data in site.availability %}
{% set text, status, start, end = '', site.availability[type].available, site.availability[type].start,
site.availability[type].end %}
{% set text, status, start, end = '', data.available, data.start, data.end %}
{% if type == 'day' %}
{% if status == 'yes' %}