liquid_feedback_frontend
changeset 951:99852ec8ee37
Put actions to the correct slot
author | bsw |
---|---|
date | Sat Dec 01 23:50:18 2012 +0100 (2012-12-01) |
parents | 37e31dd73e45 |
children | ba824959fc1f |
files | app/main/delegation/show.lua app/main/draft/new.lua app/main/draft/show.lua app/main/suggestion/new.lua |
line diff
1.1 --- a/app/main/delegation/show.lua Thu Nov 08 20:59:50 2012 +0100 1.2 +++ b/app/main/delegation/show.lua Sat Dec 01 23:50:18 2012 +0100 1.3 @@ -106,7 +106,7 @@ 1.4 1.5 ui.script{ static = "js/update_delegation_info.js" } 1.6 1.7 -slot.select("actions", function() 1.8 +ui.actions(function() 1.9 if issue then 1.10 ui.link{ 1.11 module = "issue",
2.1 --- a/app/main/draft/new.lua Thu Nov 08 20:59:50 2012 +0100 2.2 +++ b/app/main/draft/new.lua Sat Dec 01 23:50:18 2012 +0100 2.3 @@ -2,7 +2,7 @@ 2.4 2.5 local initiative = Initiative:by_id(param.get("initiative_id")) 2.6 2.7 -slot.select("actions", function() 2.8 +ui.actions(function() 2.9 ui.link{ 2.10 content = function() 2.11 ui.image{ static = "icons/16/cancel.png" }
3.1 --- a/app/main/draft/show.lua Thu Nov 08 20:59:50 2012 +0100 3.2 +++ b/app/main/draft/show.lua Sat Dec 01 23:50:18 2012 +0100 3.3 @@ -10,7 +10,7 @@ 3.4 slot.put_into("title", " · " .. _"History") 3.5 3.6 if source then 3.7 - slot.select("actions", function() 3.8 + ui.actions(function() 3.9 ui.link{ 3.10 content = _"Rendered", 3.11 module = "draft", 3.12 @@ -21,7 +21,7 @@ 3.13 end 3.14 ) 3.15 else 3.16 - slot.select("actions", function() 3.17 + ui.actions(function() 3.18 ui.link{ 3.19 content = _"Source", 3.20 module = "draft", 3.21 @@ -37,4 +37,4 @@ 3.22 module = "draft", 3.23 view = "_show", 3.24 params = { draft = draft, source = source } 3.25 -} 3.26 \ No newline at end of file 3.27 +}
4.1 --- a/app/main/suggestion/new.lua Thu Nov 08 20:59:50 2012 +0100 4.2 +++ b/app/main/suggestion/new.lua Sat Dec 01 23:50:18 2012 +0100 4.3 @@ -2,7 +2,7 @@ 4.4 4.5 slot.put_into("title", _"Add new suggestion") 4.6 4.7 -slot.select("actions", function() 4.8 +ui.actions(function() 4.9 ui.link{ 4.10 content = function() 4.11 ui.image{ static = "icons/16/cancel.png" }