liquid_feedback_frontend
diff app/main/initiative/show_static.lua @ 272:65a1f7a01e7b
More optical enhancements and repositioning of elements
author | bsw |
---|---|
date | Wed Feb 08 00:55:17 2012 +0100 (2012-02-08) |
parents | d13b27a37ad5 |
children |
line diff
1.1 --- a/app/main/initiative/show_static.lua Tue Feb 07 22:30:48 2012 +0100 1.2 +++ b/app/main/initiative/show_static.lua Wed Feb 08 00:55:17 2012 +0100 1.3 @@ -11,41 +11,6 @@ 1.4 initiative = initiative } 1.5 } 1.6 1.7 -slot.select("actions", function() 1.8 - ui.link{ 1.9 - content = function() 1.10 - local count = Initiative:new_selector():add_where{ "issue_id = ?", initiative.issue.id}:count()-1 1.11 - ui.image{ static = "icons/16/script.png" } 1.12 - if count and count > 0 then 1.13 - slot.put(_("Show alternative initiatives (#{count})", {count=count})) 1.14 - else 1.15 - slot.put(_"Show alternative initiatives") 1.16 - end 1.17 - end, 1.18 - module = "issue", 1.19 - view = "show", 1.20 - id = initiative.issue.id 1.21 - } 1.22 -end) 1.23 - 1.24 ---slot.put_into("html_head", '<link rel="alternate" type="application/rss+xml" title="RSS" href="../show/' .. tostring(initiative.id) .. '.rss" />') 1.25 - 1.26 -if app.session.member_id then 1.27 - slot.select("actions", function() 1.28 - if not initiative.issue.fully_frozen and not initiative.issue.closed then 1.29 - ui.link{ 1.30 - image = { static = "icons/16/script_add.png" }, 1.31 - attr = { class = "action" }, 1.32 - text = _"Create alternative initiative", 1.33 - module = "initiative", 1.34 - view = "new", 1.35 - params = { issue_id = initiative.issue.id } 1.36 - } 1.37 - end 1.38 - end) 1.39 -end 1.40 - 1.41 -slot.put_into("sub_title", encode.html(_("i#{id} #{name}", { id = initiative.id, name = initiative.name }) )) 1.42 1.43 execute.view{ 1.44 module = "initiative",