Skip to content

Commit

Permalink
Widget plot.minmaxavg: Rename variable "gad" to "item"
Browse files Browse the repository at this point in the history
Use same naming as for other plots.
Not a real issue but nevertheless assigned to issue Martin-Gleiss#23
Change should not affect any user of the widget
  • Loading branch information
Thomas Ernst committed Aug 22, 2016
1 parent 28d460d commit c391c83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions widgets/plot.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,16 @@
*
* @see misc/fundamentals#Duration-Format
*/
{% macro minmaxavg(id, gad, tmin, tmax, ymin, ymax, unit, axis, count) %}
{% macro minmaxavg(id, item, tmin, tmax, ymin, ymax, unit, axis, count) %}
{% set tmax = (tmax|lower=='0h' or tmax==0)? 'now' : tmax %}
{% if once('highcharts-more') %}
<script src="vendor/plot.highcharts/highcharts-more.js"></script>
{% endif %}

<div id="{{ uid(page, id) }}" data-widget="plot.minmaxavg" data-unit="{{ unit|default('') }}"
data-item="{{ implode(gad, ['min', tmin|default('1h'), tmax|default('now'), count|default(100)]) }},
{{ implode(gad, ['max', tmin|default('1h'), tmax|default('now'), count|default(100)]) }},
{{ implode(gad, ['avg', tmin|default('1h'), tmax|default('now'), count|default(100)]) }}"
data-item="{{ implode(item, ['min', tmin|default('1h'), tmax|default('now'), count|default(100)]) }},
{{ implode(item, ['max', tmin|default('1h'), tmax|default('now'), count|default(100)]) }},
{{ implode(item, ['avg', tmin|default('1h'), tmax|default('now'), count|default(100)]) }}"
{% if ymin is not empty %} data-ymin="{{ ymin }}" {% endif %} {% if ymax is not empty %} data-ymax="{{ ymax }}" {% endif %}
{% if count is not empty %} data-count="{{ count }}" {% endif %} data-axis="{{ implode(axis) }}"
class="plot"></div>
Expand Down

0 comments on commit c391c83

Please sign in to comment.