liquid_feedback_frontend

diff app/main/supporter/_show_box.lua @ 725:344e5fdce8c9

Fixed public search, made draft history available again
author bsw
date Thu Jun 28 13:52:42 2012 +0200 (2012-06-28)
parents b1ba5d237b6d
children 2cfa41e89c15
line diff
     1.1 --- a/app/main/supporter/_show_box.lua	Thu Jun 28 01:02:03 2012 +0200
     1.2 +++ b/app/main/supporter/_show_box.lua	Thu Jun 28 13:52:42 2012 +0200
     1.3 @@ -1,7 +1,5 @@
     1.4  local initiative = param.get("initiative", "table") or Initiative:by_id(param.get_id())
     1.5  
     1.6 --- TODO performance
     1.7 -local initiator = Initiator:by_pk(initiative.id, app.session.member.id)
     1.8  
     1.9  local initiative = param.get("initiative", "table")
    1.10  local supporter = Supporter:by_pk(initiative.id, app.session.member.id)
    1.11 @@ -77,57 +75,10 @@
    1.12    end
    1.13  end
    1.14  
    1.15 -if (initiative.discussion_url and #initiative.discussion_url > 0) then
    1.16 -  if initiative.discussion_url:find("^https?://") then
    1.17 -    if initiative.discussion_url and #initiative.discussion_url > 0 then
    1.18 -      ui.link{
    1.19 -        attr = {
    1.20 -          target = "_blank",
    1.21 -          title = _"Discussion with initiators"
    1.22 -        },
    1.23 -        text = _"Discuss with initiators",
    1.24 -        external = initiative.discussion_url
    1.25 -      }
    1.26 -      slot.put(" ")
    1.27 -    end
    1.28 -  else
    1.29 -    slot.put(encode.html(initiative.discussion_url))
    1.30 -  end
    1.31 -end
    1.32 -if initiator and initiator.accepted and not initiative.issue.half_frozen and not initiative.issue.closed and not initiative.revoked then
    1.33 -  ui.link{
    1.34 -    text   = _"change discussion URL",
    1.35 -    module = "initiative",
    1.36 -    view   = "edit",
    1.37 -    id     = initiative.id
    1.38 -  }
    1.39 -  slot.put(" ")
    1.40 -end
    1.41 -if initiator and initiator.accepted and not initiative.issue.half_frozen and not initiative.issue.closed and not initiative.revoked then
    1.42 -  ui.link{
    1.43 -    content = function()
    1.44 -      slot.put(_"Edit draft")
    1.45 -    end,
    1.46 -    module = "draft",
    1.47 -    view = "new",
    1.48 -    params = { initiative_id = initiative.id }
    1.49 -  }
    1.50 -  slot.put(" ")
    1.51 -end
    1.52  
    1.53 -if initiator and initiator.accepted and not initiative.issue.half_frozen and not initiative.issue.closed and not initiative.revoked then
    1.54 -  ui.link{
    1.55 -    content = function()
    1.56 -      slot.put(_"Revoke initiative")
    1.57 -    end,
    1.58 -    module = "initiative",
    1.59 -    view = "revoke",
    1.60 -    id = initiative.id
    1.61 -  }
    1.62 -  slot.put(" ")
    1.63 -end
    1.64  
    1.65  if not initiative.issue.closed then
    1.66 +  slot.put(" · ")
    1.67    local ignored_initiative = IgnoredInitiative:by_pk(app.session.member.id, initiative.id)
    1.68    if ignored_initiative then
    1.69      ui.tag{

Impressum / About Us