diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-03-05 03:53:31 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-03-05 03:53:31 +0400 |
commit | c25f396c2452760b9c40c95b6889a3abdfcb317e (patch) | |
tree | 046e92caa124ab6a8f531d2e4232be296caa7764 /plugins/Insights/templates/insightControls.twig | |
parent | 8601c094bd1b0e4dbf80877ea7d00ad831a1b7ba (diff) |
refs #57 started to work on movers and shakers and lots of minor improvements
Diffstat (limited to 'plugins/Insights/templates/insightControls.twig')
-rw-r--r-- | plugins/Insights/templates/insightControls.twig | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/plugins/Insights/templates/insightControls.twig b/plugins/Insights/templates/insightControls.twig index d976ecccf8..d2d3779bd6 100644 --- a/plugins/Insights/templates/insightControls.twig +++ b/plugins/Insights/templates/insightControls.twig @@ -1,5 +1,5 @@ <div style="padding: 10px;padding-bottom: 0px;"> - Minimum impact of + Minimum visits of <select name="minVisitsPercent" title="Based on a total of {{ dataTable.getMetadata('totalValue') }} visitors or metricname"> {% for i in range(0, 10) %} <option {% if i == properties.min_visits_percent %}selected{% endif %} value="{{ i }}">{{ i }}%</option> @@ -7,7 +7,7 @@ {% for i in range(12, 30, 2) %} <option {% if i == properties.min_visits_percent %}selected{% endif %} value="{{ i }}">{{ i }}%</option> {% endfor %} - {% for i in range(35, 100, 5) %} + {% for i in range(40, 100, 10) %} <option {% if i == properties.min_visits_percent %}selected{% endif %} value="{{ i }}">{{ i }}%</option> {% endfor %} </select> @@ -25,28 +25,30 @@ {% endfor %} </select> - compared to - {% if period == 'day' %} - <select size="1" name="comparedToXPeriodsAgo"> - <option value="1" {% if properties.compared_to_x_periods_ago == 1 %}selected{% endif %}> - previous day - </option> - <option value="7" {% if properties.compared_to_x_periods_ago == 7 %}selected{% endif %}> - same day in previous week - </option> - <option value="365" {% if properties.compared_to_x_periods_ago == 365 %}selected{% endif %}> - same day in previous year - </option> - </select> - {% elseif period == 'month' %} - <select size="1" name="comparedToXPeriodsAgo"> - <option value="1" {% if properties.compared_to_x_periods_ago == 1 %}selected{% endif %}> - previous month - </option> - <option value="12" {% if properties.compared_to_x_periods_ago == 12 %}selected{% endif %}> - same month in previous year - </option> - </select> + {% if period == 'day' or period == 'month' %} + compared to + {% if period == 'day' %} + <select size="1" name="comparedToXPeriodsAgo"> + <option value="1" {% if properties.compared_to_x_periods_ago == 1 %}selected{% endif %}> + previous day + </option> + <option value="7" {% if properties.compared_to_x_periods_ago == 7 %}selected{% endif %}> + same day in previous week + </option> + <option value="365" {% if properties.compared_to_x_periods_ago == 365 %}selected{% endif %}> + same day in previous year + </option> + </select> + {% elseif period == 'month' %} + <select size="1" name="comparedToXPeriodsAgo"> + <option value="1" {% if properties.compared_to_x_periods_ago == 1 %}selected{% endif %}> + previous month + </option> + <option value="12" {% if properties.compared_to_x_periods_ago == 12 %}selected{% endif %}> + same month in previous year + </option> + </select> + {% endif %} {% endif %} <hr style="height: 1px;border: 0px;background-color: #cccccc;" /> |