Skip to content

Commit 5720156

Browse files
authored
Move meta data above the chart (#1142)
1 parent 1261b37 commit 5720156

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

templates/techreport/components/filter_meta.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@
88
<li>
99
Rank: <span data-slot="rank">{{ request.args.get('rank', '') or 'ALL' }}</span>
1010
</li>
11+
{# if only one technology (including ALL), then legend is not shown so add label #}
12+
{% if ',' not in request.args.get('tech', '') %}
13+
<li>
14+
Technologies: <span data-slot="tech">{{ request.args.get('tech', '') or 'ALL' }}</span>
15+
</li>
16+
{% endif %}
1117
</ul>

templates/techreport/components/timeseries.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ <h3><a href="#section-{{ timeseries.id }}" class="anchor">{{ title }}</a></h3>
3131
<h4 class="heading">
3232
Latest data: <span data-slot="timestamp"></span>
3333
</h4>
34+
{% include "techreport/components/filter_meta.html" %}
3435
<div class="breakdown-list" data-change="{{ timeseries.change }}" data-meaning="{{ timeseries.changeMeaning }}">
3536
{% if timeseries.viz.series.breakdown == 'client' %}
3637
{% for breakdown in timeseries.viz.series["values"] %}
@@ -68,5 +69,4 @@ <h4 class="heading">
6869
{% include "techreport/components/table.html" %}
6970
</div>
7071

71-
{% include "techreport/components/filter_meta.html" %}
7272
</div>

0 commit comments

Comments
 (0)