liquid_feedback_frontend
view app/main/initiative/_suggestions.lua @ 141:20e0b64cc1f9
use monospace/pre data on suggestion display and entry
this allows better formatting on the user suggestions without the overhead of using wiki there
fixes bug #215
this allows better formatting on the user suggestions without the overhead of using wiki there
fixes bug #215
| author | Daniel Poelzleithner <poelzi@poelzi.org> | 
|---|---|
| date | Wed Oct 06 14:34:45 2010 +0200 (2010-10-06) | 
| parents | 0849be391140 | 
| children | b77e6a17ca77 | 
 line source
     1 local initiative = param.get("initiative", "table")
     3 if app.session.member_id and not initiative.issue.half_frozen and not initiative.issue.closed and not initiative.revoked then
     4   ui.link{
     5     content = function()
     6       ui.image{ static = "icons/16/comment_add.png" }
     7       slot.put(_"Add new suggestion")
     8     end,
     9     module = "suggestion",
    10     view = "new",
    11     params = {
    12       initiative_id = initiative.id
    13     }
    14   }
    15 end
    17 execute.view{
    18   module = "suggestion",
    19   view = "_list",
    20   params = {
    21     initiative = initiative,
    22     suggestions_selector = initiative:get_reference_selector("suggestions"),
    23     tab_id = param.get("tab_id")
    24   }
    25 }
