liquid_feedback_frontend
annotate app/main/issue/show.lua @ 118:93f4e465b50d
add initiator support in delegation
if a delegation is issued from the initiative view, the initiators
from that one are added to the delegation target list. this makes it easier to delegate to the author without the need to add him to the contact list.
if a delegation is issued from the initiative view, the initiators
from that one are added to the delegation target list. this makes it easier to delegate to the author without the need to add him to the contact list.
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Mon Sep 20 20:32:04 2010 +0200 (2010-09-20) |
parents | 18fbd62e8595 |
children | 7196685f9dd7 |
rev | line source |
---|---|
bsw/jbe@0 | 1 local issue = Issue:by_id(param.get_id()) |
bsw/jbe@0 | 2 |
jorges@116 | 3 if not app.html_title.title then |
jorges@116 | 4 app.html_title.title = _("Issue ##{id}", { id = issue.id }) |
jorges@116 | 5 end |
jorges@113 | 6 |
bsw/jbe@0 | 7 execute.view{ |
bsw/jbe@4 | 8 module = "issue", |
bsw/jbe@4 | 9 view = "_show_head", |
bsw/jbe@0 | 10 params = { issue = issue } |
bsw/jbe@0 | 11 } |
bsw/jbe@0 | 12 |
bsw/jbe@19 | 13 --[[ |
bsw/jbe@19 | 14 if not issue.fully_frozen and not issue.closed then |
bsw/jbe@19 | 15 slot.select("actions", function() |
bsw/jbe@19 | 16 ui.link{ |
bsw/jbe@19 | 17 content = function() |
bsw/jbe@19 | 18 ui.image{ static = "icons/16/script_add.png" } |
bsw/jbe@19 | 19 slot.put(_"Create alternative initiative") |
bsw/jbe@19 | 20 end, |
bsw/jbe@19 | 21 module = "initiative", |
bsw/jbe@19 | 22 view = "new", |
bsw/jbe@19 | 23 params = { issue_id = issue.id } |
bsw/jbe@19 | 24 } |
bsw/jbe@19 | 25 end) |
bsw/jbe@19 | 26 end |
bsw/jbe@19 | 27 --]] |
bsw/jbe@19 | 28 |
bsw/jbe@4 | 29 util.help("issue.show") |
bsw@2 | 30 |
bsw/jbe@19 | 31 if issue.state == "cancelled" then |
bsw/jbe@19 | 32 local policy = issue.policy |
bsw/jbe@19 | 33 ui.container{ |
bsw/jbe@19 | 34 attr = { class = "not_admitted_info" }, |
bsw/jbe@19 | 35 content = _("This issue has been cancelled. It failed the quorum of #{quorum}.", { quorum = format.percentage(policy.issue_quorum_num / policy.issue_quorum_den) }) |
bsw/jbe@19 | 36 } |
bsw@16 | 37 end |
bsw@16 | 38 |
bsw/jbe@19 | 39 ui.container{ |
bsw/jbe@19 | 40 attr = { class = "issue_initiative_list" }, |
bsw/jbe@19 | 41 content = function() |
bsw/jbe@19 | 42 execute.view{ |
bsw/jbe@19 | 43 module = "initiative", |
bsw/jbe@19 | 44 view = "_list", |
bsw/jbe@19 | 45 params = { |
bsw/jbe@19 | 46 initiatives_selector = issue:get_reference_selector("initiatives"), |
bsw/jbe@19 | 47 issue = issue, |
bsw/jbe@19 | 48 expandable = true, |
bsw/jbe@19 | 49 for_initiative_id = param.get("for_initiative_id", atom.number), |
bsw/jbe@19 | 50 show_for_issue = true |
bsw@3 | 51 } |
bsw/jbe@19 | 52 } |
bsw/jbe@19 | 53 end |
bsw/jbe@0 | 54 } |
bsw/jbe@0 | 55 |
bsw/jbe@19 | 56 slot.put("<br />") |
bsw/jbe@0 | 57 |
bsw/jbe@19 | 58 execute.view{ |
bsw/jbe@19 | 59 module = "issue", |
bsw/jbe@19 | 60 view = "show_tab", |
bsw/jbe@19 | 61 params = { issue = issue } |
bsw/jbe@19 | 62 } |
bsw/jbe@19 | 63 |
bsw/jbe@19 | 64 if issue.snapshot then |
bsw/jbe@19 | 65 slot.put("<br />") |
bsw/jbe@19 | 66 ui.field.timestamp{ label = _"Last snapshot:", value = issue.snapshot } |
bsw/jbe@19 | 67 end |
bsw/jbe@19 | 68 |