# HG changeset patch # User bsw # Date 1354402218 -3600 # Node ID 99852ec8ee37a9b29d352008bab227543ee6cf56 # Parent 37e31dd73e451bf64754da9633d0d43379d85136 Put actions to the correct slot diff -r 37e31dd73e45 -r 99852ec8ee37 app/main/delegation/show.lua --- a/app/main/delegation/show.lua Thu Nov 08 20:59:50 2012 +0100 +++ b/app/main/delegation/show.lua Sat Dec 01 23:50:18 2012 +0100 @@ -106,7 +106,7 @@ ui.script{ static = "js/update_delegation_info.js" } -slot.select("actions", function() +ui.actions(function() if issue then ui.link{ module = "issue", diff -r 37e31dd73e45 -r 99852ec8ee37 app/main/draft/new.lua --- a/app/main/draft/new.lua Thu Nov 08 20:59:50 2012 +0100 +++ b/app/main/draft/new.lua Sat Dec 01 23:50:18 2012 +0100 @@ -2,7 +2,7 @@ local initiative = Initiative:by_id(param.get("initiative_id")) -slot.select("actions", function() +ui.actions(function() ui.link{ content = function() ui.image{ static = "icons/16/cancel.png" } diff -r 37e31dd73e45 -r 99852ec8ee37 app/main/draft/show.lua --- a/app/main/draft/show.lua Thu Nov 08 20:59:50 2012 +0100 +++ b/app/main/draft/show.lua Sat Dec 01 23:50:18 2012 +0100 @@ -10,7 +10,7 @@ slot.put_into("title", " · " .. _"History") if source then - slot.select("actions", function() + ui.actions(function() ui.link{ content = _"Rendered", module = "draft", @@ -21,7 +21,7 @@ end ) else - slot.select("actions", function() + ui.actions(function() ui.link{ content = _"Source", module = "draft", @@ -37,4 +37,4 @@ module = "draft", view = "_show", params = { draft = draft, source = source } -} \ No newline at end of file +} diff -r 37e31dd73e45 -r 99852ec8ee37 app/main/suggestion/new.lua --- a/app/main/suggestion/new.lua Thu Nov 08 20:59:50 2012 +0100 +++ b/app/main/suggestion/new.lua Sat Dec 01 23:50:18 2012 +0100 @@ -2,7 +2,7 @@ slot.put_into("title", _"Add new suggestion") -slot.select("actions", function() +ui.actions(function() ui.link{ content = function() ui.image{ static = "icons/16/cancel.png" }