liquid_feedback_frontend
changeset 604:c4144daf6906
Fixed title and actions in voting form
author | bsw |
---|---|
date | Sun Jun 24 23:01:00 2012 +0200 (2012-06-24) |
parents | b5684668ac4b |
children | 42afe0765f86 327f24e6799d |
files | app/main/vote/list.lua |
line diff
1.1 --- a/app/main/vote/list.lua Sun Jun 24 22:56:17 2012 +0200 1.2 +++ b/app/main/vote/list.lua Sun Jun 24 23:01:00 2012 +0200 1.3 @@ -41,27 +41,21 @@ 1.4 encode.html(tostring(issue.id))) 1.5 } 1.6 ) 1.7 - slot.put_into("title", str) 1.8 + ui.title(str) 1.9 else 1.10 member = app.session.member 1.11 - slot.put_into("title", _"Voting") 1.12 + ui.title(_"Voting") 1.13 1.14 - slot.select("actions", function() 1.15 + ui.actions(function() 1.16 ui.link{ 1.17 - content = function() 1.18 - ui.image{ static = "icons/16/cancel.png" } 1.19 - slot.put(_"Cancel") 1.20 - end, 1.21 + text = _"Cancel", 1.22 module = "issue", 1.23 view = "show", 1.24 id = issue.id 1.25 } 1.26 + slot.put(" · ") 1.27 ui.link{ 1.28 text = _"Discard voting", 1.29 - content = function() 1.30 - ui.image{ static = "icons/16/email_delete.png" } 1.31 - slot.put(_"Discard voting") 1.32 - end, 1.33 module = "vote", 1.34 action = "update", 1.35 params = {