liquid_feedback_frontend
view app/main/initiative/_current_draft.lua @ 276:f460555c9896
Code cleanup
| author | bsw | 
|---|---|
| date | Sun Feb 12 20:03:26 2012 +0100 (2012-02-12) | 
| parents | d13b27a37ad5 | 
| children | 
 line source
     1 local initiator = param.get("initiator", "table")
     2 local initiative = param.get("initiative", "table")
     4 if initiator and initiator.accepted and not initiative.issue.half_frozen and not initiative.issue.closed and not initiative.revoked then
     5   ui.link{
     6     attr = { class = "actions" },
     7     content = function()
     8       ui.image{ static = "icons/16/script_add.png" }
     9       slot.put(_"Edit draft")
    10     end,
    11     module = "draft",
    12     view = "new",
    13     params = { initiative_id = initiative.id }
    14   }
    15 end
    17 if initiator and initiator.accepted and not initiative.issue.half_frozen and not initiative.issue.closed and not initiative.revoked then
    18   ui.link{
    19     attr = { class = "actions" },
    20     content = function()
    21       ui.image{ static = "icons/16/script_delete.png" }
    22       slot.put(_"Revoke initiative")
    23     end,
    24     module = "initiative",
    25     view = "revoke",
    26     id = initiative.id
    27   }
    28 end
    30 execute.view{ module = "draft", view = "_show", params = { draft = initiative.current_draft } }
