Commit 6f72bcbb authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

views/my_account/index.html, views/db_layout.html: stats, processes, filter on tags

bikeshedding, see #4587 #4593 #4594
parent 45c8e736
......@@ -4,9 +4,9 @@
<a class="button button_token patient_token" onclick="db.call('sample_set/all', {'type': 'patient', 'page': 0});">patients</a>
<a class="button button_token run_token" onclick="db.call('sample_set/all', {'type': 'run', 'page': 0});">runs</a>
<a class="button button_token generic_token" onclick="db.call('sample_set/all', {'type': 'generic', 'page': 0} );">sets</a>
<a class="button" onclick="db.call('my_account/index');">stats</a>
<a class="button" onclick="db.call('my_account/jobs');">processes</a>
<a class="button" onclick="db.call('notification/index');">news</a>
<a class="button" onclick="db.call('my_account/index');">my account</a>
<a class="button" onclick="db.call('my_account/jobs');">my jobs</a>
<!-- <a class="button" onclick="db.call('log/index');">log</a> -->
{{if auth.is_admin():}}
- - -
......
{{extend 'db_layout.html'}}
<div>
<h3>My Account &ndash;
<h3>Stats &ndash;
{{ if request.vars["filter"]: }}
{{=request.vars["filter"]}}
{{ else: }}
......@@ -26,7 +26,7 @@
<span class="{{=set_type}}_num_sets">{{=r['num_sets']}}</span>
<span class="button_token {{=r['sample_type']}}_token">{{=set_type}}s</span>,
<span class="{{=set_type}}_num_samples devel-mode">({{=r['num_samples']}} samples)</span>
<span>{{=result[role][set_type]['num_jobs']}} jobs last month
<span>{{=result[role][set_type]['num_jobs']}} processes last month
<span style='font-size: 80%;'>{{=result[role][set_type]['statuses']}}</span>
</span>
</div>
......@@ -81,7 +81,7 @@
<br />
<div class="db_block">
<div class="db_block_left">
filter
filter on tags
<input id="db_filter_input" type="text" value="{{=request.vars["filter"]}}" onchange="db.call('my_account/index', {'filter' : this.value, 'group_ids': {{=group_ids}} } )"
onfocus="new VidjilAutoComplete().setupTags(this);"
data-needs-atwho="true" data-keys="{{=involved_group_ids}}">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment