{% insert_str prelude "datatables/js/dataTables.js" %}
{% insert_str prelude "css/slice.css" %}
{% insert prelude_js %}
-$(document).ready(function () { window.console.log('hi'); $('#datatable').dataTable()})
+$(document).ready(function () { $('#datatable').dataTable() } )
{% endinsert %}
<table id='datatable'>
<thead> <tr> <th>slice</th> </tr> </thead>
<tbody>
- <tr><td> ple.inria.foo </td></tr>
- <tr><td>ple.inria.bar</td></tr>
+ {% for slicename in slices %}
+ <tr><td> <a href="/slice/{{ slicename }}/">{{ slicename }}</a></td></tr>
+ {% endfor %}
</tbody>
</table>
{% endblock content_related %}
return result
+hard_wired_slice_names = []
+hard_wired_slice_names.append ('ple.inria.foo')
+hard_wired_slice_names.append ('ple.inria.bar')
+hard_wired_slice_names.append ('ple.inria.tutu')
+hard_wired_slice_names.append ('ple.upmc.foo')
+hard_wired_slice_names.append ('ple.upmc.bar')
+hard_wired_slice_names.append ('ple.upmc.tutu')
+hard_wired_slice_names.append ('ple.ibbt.foo')
+hard_wired_slice_names.append ('ple.ibbt.bar')
+hard_wired_slice_names.append ('ple.ibbt.tutu')
+
def fake_slice_view (request, name=None):
result=render_to_response('slice.html',
{'foo':'var_foo_set_in_view',
'name':name,
+ 'slices': hard_wired_slice_names,
'content_main' : lorem,
'menu_items' : menu_items('slice'),
},