liquid_feedback_frontend
diff app/main/interest/_show_box.lua @ 16:559c6be0e1e9
"Vote later" feature; Refactored interest box
| author | bsw |
|---|---|
| date | Tue Feb 02 00:10:17 2010 +0100 (2010-02-02) |
| parents | afd9f769c7ae |
| children | 00d1004545f1 |
line diff
1.1 --- a/app/main/interest/_show_box.lua Sun Jan 31 22:34:45 2010 +0100 1.2 +++ b/app/main/interest/_show_box.lua Tue Feb 02 00:10:17 2010 +0100 1.3 @@ -77,4 +77,17 @@ 1.4 end 1.5 } 1.6 end) 1.7 +else 1.8 + if not issue.closed and not issue.fully_frozen then 1.9 + ui.link{ 1.10 + content = function() 1.11 + ui.image{ static = "icons/16/user_add.png" } 1.12 + slot.put(_"Add my interest") 1.13 + end, 1.14 + module = "interest", 1.15 + action = "update", 1.16 + params = { issue_id = issue.id }, 1.17 + routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } } 1.18 + } 1.19 + end 1.20 end 1.21 \ No newline at end of file