Parent: [df5189] (diff)

Child: [ddf08c] (diff)

Download this file

vote.py    15 lines (11 with data), 308 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import ew as ew_core
import ew.jinja2_ew as ew
class VoteForm(ew_core.Widget):
template = 'jinja:allura:templates/widgets/vote.html'
defaults = dict(
ew_core.Widget.defaults,
action='vote',
artifact=None
)
def resources(self):
yield ew.JSLink('js/vote.js')