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
renamed verticallayout into stack
[unfold.git]
/
plugins
/
lists
/
staticlist.py
diff --git
a/plugins/lists/staticlist.py
b/plugins/lists/staticlist.py
index
b9c644b
..
c5a254a
100644
(file)
--- a/
plugins/lists/staticlist.py
+++ b/
plugins/lists/staticlist.py
@@
-1,4
+1,4
@@
-from
engine
.plugin import Plugin
+from
unfold
.plugin import Plugin
class StaticList (Plugin) :
class StaticList (Plugin) :
@@
-14,9
+14,11
@@
class StaticList (Plugin) :
def template_env (self, request):
env={}
def template_env (self, request):
env={}
+ # would need some cleaner means to set a header here
header=getattr(self,'header',None)
if header: env['header']=header
env['list']=self.list
header=getattr(self,'header',None)
if header: env['header']=header
env['list']=self.list
+ env['with_datatables']= "yes" if self.with_datatables else ""
return env
def requirements (self):
return env
def requirements (self):
@@
-24,6
+26,6
@@
class StaticList (Plugin) :
'css_files': [ "css/staticlist.css" ],
}
if self.with_datatables:
'css_files': [ "css/staticlist.css" ],
}
if self.with_datatables:
- reqs['js_files'].append ("
datatables/
js/dataTables.js")
+ reqs['js_files'].append ("js/dataTables.js")
reqs['js_files'].append ("js/with-datatables.js")
return reqs
reqs['js_files'].append ("js/with-datatables.js")
return reqs