liquid_feedback_frontend
diff app/main/vote/list.lua @ 26:3036f2732b83
Allow discarding own voting
| author | bsw |
|---|---|
| date | Sun Feb 21 15:11:48 2010 +0100 (2010-02-21) |
| parents | 00d1004545f1 |
| children | 1f1f8c78ba3a |
line diff
1.1 --- a/app/main/vote/list.lua Sun Feb 21 14:23:56 2010 +0100 1.2 +++ b/app/main/vote/list.lua Sun Feb 21 15:11:48 2010 +0100 1.3 @@ -31,8 +31,27 @@ 1.4 view = "show", 1.5 id = issue.id 1.6 } 1.7 + ui.link{ 1.8 + content = function() 1.9 + ui.image{ static = "icons/16/email_delete.png" } 1.10 + slot.put(_"Discard voting") 1.11 + end, 1.12 + module = "vote", 1.13 + action = "update", 1.14 + params = { 1.15 + issue_id = issue.id, 1.16 + discard = true 1.17 + }, 1.18 + routing = { 1.19 + default = { 1.20 + mode = "redirect", 1.21 + module = "issue", 1.22 + view = "show", 1.23 + id = issue.id 1.24 + } 1.25 + } 1.26 + } 1.27 end) 1.28 - 1.29 end 1.30 1.31