Add 'tempest_runs' variable to templates and add run selector menu to timeline
This commit is contained in:
parent
1baf2642ea
commit
def89936d6
stackviz
@ -4,5 +4,6 @@ from stackviz.settings import USE_GZIP
|
||||
def inject_extra_context(request):
|
||||
return {
|
||||
'tempest_latest_run': get_repositories()[0].latest_id(),
|
||||
'tempest_runs': xrange(get_repositories()[0].count()),
|
||||
'use_gzip': USE_GZIP
|
||||
}
|
||||
|
@ -34,6 +34,19 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<i class="fa fa-clock-o fa-fw"></i> Timeline
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||
View Run...
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu pull-right" role="menu">
|
||||
{% for run_id in tempest_runs %}
|
||||
<li><a href="tempest_timeline_{{run_id}}.html">Run #{{run_id}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="timeline-container" class="panel-body">
|
||||
|
Loading…
x
Reference in New Issue
Block a user