Commit 7e143af3 authored by Mikaël Salson's avatar Mikaël Salson Committed by Vidjil
Browse files

stats_decorator.py: onclick() to go back to the samples

parent 36a29d42
......@@ -76,7 +76,7 @@ class SetsDecorator(StatDecorator):
def decorate(self, data):
ssets = []
for sample_set in data:
d = DIV("(%d) %s" % (sample_set['id'], sample_set['name']))
d = DIV("(%d) %s" % (sample_set['id'], sample_set['name']), _onclick="db.call('sample_set/index', {'id': '%d'})" % sample_set['id'], _class="pointer")
ssets.append(d)
return DIV(*ssets)
......
Markdown is supported
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