liquid_feedback_frontend

diff app/main/issue/show.lua @ 4:80c215dbf076

Version alpha5

Many optical changes and improved usability

Support for different wiki-formatting-engines

Help system
author bsw/jbe
date Thu Dec 10 12:00:00 2009 +0100 (2009-12-10)
parents 768faea1096d
children afd9f769c7ae
line diff
     1.1 --- a/app/main/issue/show.lua	Mon Nov 30 12:00:00 2009 +0100
     1.2 +++ b/app/main/issue/show.lua	Thu Dec 10 12:00:00 2009 +0100
     1.3 @@ -1,52 +1,12 @@
     1.4  local issue = Issue:by_id(param.get_id())
     1.5  
     1.6 -slot.put_into("html_head", '<link rel="alternate" type="application/rss+xml" title="RSS" href="../show/' .. tostring(issue.id) .. '.rss" />')
     1.7 -
     1.8 -slot.select("path", function()
     1.9 -  ui.link{
    1.10 -    content = _"Area '#{name}'":gsub("#{name}", issue.area.name),
    1.11 -    module = "area",
    1.12 -    view = "show",
    1.13 -    id = issue.area.id
    1.14 -  }
    1.15 -end)
    1.16 -
    1.17 -slot.put_into("title", encode.html(_"Issue ##{id} (#{policy_name})":gsub("#{id}", issue.id):gsub("#{policy_name}", issue.policy.name)))
    1.18 -
    1.19 -slot.select("actions", function()
    1.20 -  if not issue.closed then
    1.21 -    ui.link{
    1.22 -      content = function()
    1.23 -        ui.image{ static = "icons/16/table_go.png" }
    1.24 -        slot.put(_"Delegate")
    1.25 -      end,
    1.26 -      module = "delegation",
    1.27 -      view = "new",
    1.28 -      params = { issue_id = issue.id }
    1.29 -    }
    1.30 -  end
    1.31 -
    1.32 -  ui.twitter("http://example.com/t" .. tostring(issue.id))
    1.33 -
    1.34 -end)
    1.35 -
    1.36  execute.view{
    1.37 -  module = "interest",
    1.38 -  view = "_show_box",
    1.39 +  module = "issue",
    1.40 +  view = "_show_head",
    1.41    params = { issue = issue }
    1.42  }
    1.43  
    1.44 -execute.view{
    1.45 -  module = "delegation",
    1.46 -  view = "_show_box",
    1.47 -  params = { issue_id = issue.id }
    1.48 -}
    1.49 -
    1.50 -execute.view{
    1.51 -  module = "issue",
    1.52 -  view = "_show_box",
    1.53 -  params = { issue = issue }
    1.54 -}
    1.55 +util.help("issue.show")
    1.56  
    1.57  ui.tabs{
    1.58    {

Impressum / About Us