liquid_feedback_frontend
changeset 149:d87097d3b6ec
small hint to show the number of alternative initiatives
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Fri Oct 08 03:25:59 2010 +0200 (2010-10-08) |
parents | 034f96181e59 |
children | eaf3db89a6e1 |
files | app/main/initiative/show_static.lua locale/translations.de.lua locale/translations.en.lua |
line diff
1.1 --- a/app/main/initiative/show_static.lua Fri Oct 08 02:49:53 2010 +0200 1.2 +++ b/app/main/initiative/show_static.lua Fri Oct 08 03:25:59 2010 +0200 1.3 @@ -7,8 +7,13 @@ 1.4 slot.select("actions", function() 1.5 ui.link{ 1.6 content = function() 1.7 + local count = Initiative:new_selector():add_where{ "issue_id = ?", initiative.issue.id}:count()-1 1.8 ui.image{ static = "icons/16/script.png" } 1.9 - slot.put(_"Show alternative initiatives") 1.10 + if count and count > 0 then 1.11 + slot.put(_("Show alternative initiatives (#{count})", {count=count})) 1.12 + else 1.13 + slot.put(_"Show alternative initiatives") 1.14 + end 1.15 end, 1.16 module = "issue", 1.17 view = "show",
2.1 --- a/locale/translations.de.lua Fri Oct 08 02:49:53 2010 +0200 2.2 +++ b/locale/translations.de.lua Fri Oct 08 03:25:59 2010 +0200 2.3 @@ -412,6 +412,7 @@ 2.4 ["Show"] = "Zeige"; 2.5 ["Show active members"] = "Zeige aktive Mitglieder"; 2.6 ["Show alternative initiatives"] = "Zeige alternative Initiativen"; 2.7 +["Show alternative initiatives (#{count})"] = "Zeige alternative Initiativen (#{count})"; 2.8 ["Show areas in use"] = "Zeige verwendete Themenbereiche"; 2.9 ["Show areas not in use"] = "Zeige nicht verwendente Themenbereiche"; 2.10 ["Show diff"] = "Änderungen anzeigen";
3.1 --- a/locale/translations.en.lua Fri Oct 08 02:49:53 2010 +0200 3.2 +++ b/locale/translations.en.lua Fri Oct 08 03:25:59 2010 +0200 3.3 @@ -411,6 +411,7 @@ 3.4 ["Show"] = false; 3.5 ["Show active members"] = false; 3.6 ["Show alternative initiatives"] = false; 3.7 +["Show alternative initiatives (#{count})"] = false; 3.8 ["Show areas in use"] = false; 3.9 ["Show areas not in use"] = false; 3.10 ["Show diff"] = false;