# HG changeset patch # User bsw # Date 1340571660 -7200 # Node ID c4144daf690625dab089bc26d3a25a8cfcc12af7 # Parent b5684668ac4b5c4c3ec7f3bbae82c01c997df1a4 Fixed title and actions in voting form diff -r b5684668ac4b -r c4144daf6906 app/main/vote/list.lua --- a/app/main/vote/list.lua Sun Jun 24 22:56:17 2012 +0200 +++ b/app/main/vote/list.lua Sun Jun 24 23:01:00 2012 +0200 @@ -41,27 +41,21 @@ encode.html(tostring(issue.id))) } ) - slot.put_into("title", str) + ui.title(str) else member = app.session.member - slot.put_into("title", _"Voting") + ui.title(_"Voting") - slot.select("actions", function() + ui.actions(function() ui.link{ - content = function() - ui.image{ static = "icons/16/cancel.png" } - slot.put(_"Cancel") - end, + text = _"Cancel", module = "issue", view = "show", id = issue.id } + slot.put(" · ") ui.link{ text = _"Discard voting", - content = function() - ui.image{ static = "icons/16/email_delete.png" } - slot.put(_"Discard voting") - end, module = "vote", action = "update", params = {