diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-03-10 05:53:19 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-03-10 05:53:19 +0400 |
commit | 3710bb49dc11df86f40a87c65cd1038b3bbff2db (patch) | |
tree | ac9287862e07c790279d7598038dc83413f2f238 /plugins/Insights/templates | |
parent | 03583a98a563830f856c30a6206d265bb94b73e8 (diff) |
refs #57 some more code tweaks and documentation
Diffstat (limited to 'plugins/Insights/templates')
-rw-r--r-- | plugins/Insights/templates/insightControls.twig | 6 | ||||
-rw-r--r-- | plugins/Insights/templates/table_header.twig | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/plugins/Insights/templates/insightControls.twig b/plugins/Insights/templates/insightControls.twig index e9d1e3f27f..738d2812ba 100644 --- a/plugins/Insights/templates/insightControls.twig +++ b/plugins/Insights/templates/insightControls.twig @@ -1,4 +1,4 @@ -<div style="padding: 10px;padding-bottom: 0px;"> +<div class="controls"> {{ 'Insights_ControlGrowthDescription'|translate }} @@ -14,7 +14,7 @@ {% endfor %} </select> - {% if period == 'day' or period == 'month' or period == 'week' %} + {% if period != 'range' %} {{ 'Insights_ControlComparedToDescription'|translate }} @@ -41,6 +41,8 @@ </select> {% elseif period == 'week' %} {{ 'Insights_WeekComparedToPreviousWeek'|translate }} + {% elseif period == 'year' %} + {{ 'Insights_YearComparedToPreviousYear'|translate }} {% endif %} {% endif %} diff --git a/plugins/Insights/templates/table_header.twig b/plugins/Insights/templates/table_header.twig index 7226f88450..7b30d06de9 100644 --- a/plugins/Insights/templates/table_header.twig +++ b/plugins/Insights/templates/table_header.twig @@ -2,12 +2,12 @@ <th class="label"> {{ metadata.reportName }} </th> - <th class="label orderBy" name="orderBy" value="absolute" - style="{% if 'absolute' == properties.order_by %}font-weight:bold;{% endif %}"> + <th class="label orderBy {% if 'absolute' == properties.order_by %}active{% endif %}" + name="orderBy" value="absolute"> {{ metadata.metricName }} </th> - <th class="label orderBy" name="orderBy" value="relative" - style="{% if 'relative' == properties.order_by %}font-weight:bold;{% endif %}"> + <th class="label orderBy {% if 'relative' == properties.order_by %}active{% endif %}" + name="orderBy" value="relative"> {{ 'MultiSites_Evolution'|translate }} </th> </tr>
\ No newline at end of file |