Add navigation templates
This commit is contained in:
parent
2ca618eedd
commit
357771b345
|
@ -0,0 +1,26 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta name="viewport" content="width=device-width; initial-scale=1">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<ul>
|
||||||
|
{% for d in matching_dimensions %}
|
||||||
|
<li><a href="{{d['url']}}">{{d.name}}</a> ({{d.count}})</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{{timeseries|length}}/{{total_timeseries}} timeseries:
|
||||||
|
<ul>
|
||||||
|
{% for ts in timeseries %}
|
||||||
|
<li>
|
||||||
|
<a href="/v?ts={{ts.id}}">{{ts.description}}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta name="viewport" content="width=device-width; initial-scale=1">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form>
|
||||||
|
{% for dimension, members in request.args.lists() %}
|
||||||
|
{% for member in members %}
|
||||||
|
{% if dimension[0] != "." %}
|
||||||
|
<input name="{{dimension}}" value="{{member}}" type="hidden">
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
<select name="{{dimension}}" multiple size={{members|length}}>
|
||||||
|
{% for member in members %}
|
||||||
|
<option>{{member}}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
<input type="submit">
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue