git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rewrite simplelist to use a table (thus datatable-ready) instead of <ul> -- ctd
[unfold.git]
/
plugins
/
simplelist.py
diff --git
a/plugins/simplelist.py
b/plugins/simplelist.py
index
371e5d6
..
d3ec876
100644
(file)
--- a/
plugins/simplelist.py
+++ b/
plugins/simplelist.py
@@
-10,7
+10,14
@@
class SimpleList (Plugin) :
self.with_datatables = with_datatables
# SimpleList is useless per se anyways
self.with_datatables = with_datatables
# SimpleList is useless per se anyways
- def template_file (self): return "simplelist.html"
+ def template_file (self):
+ return "simplelist.html"
+
+ def template_env (self, request):
+ env={}
+ header=getattr(self,'header',None)
+ if header: env['header']=header
+ return env
def requirements (self):
reqs = { 'js_files' : [ "js/simplelist.js", "js/plugin.js", "js/query.js", "js/onavail.js",
def requirements (self):
reqs = { 'js_files' : [ "js/simplelist.js", "js/plugin.js", "js/query.js", "js/onavail.js",