liquid_feedback_frontend

annotate app/main/area/_list_entry.lua @ 598:9df26b41ace0

Improved member home page and area list
author bsw
date Sun Jun 24 22:30:29 2012 +0200 (2012-06-24)
parents
children 7dc5ab12bfe3
rev   line source
bsw@598 1 local area = param.get("area", "table")
bsw@598 2
bsw@598 3 ui.container{ attr = { class = "area" }, content = function()
bsw@598 4 execute.view{ module = "delegation", view = "_info", params = { area = area } }
bsw@598 5
bsw@598 6 ui.container{ attr = { class = "title" }, content = function()
bsw@598 7 -- area name
bsw@598 8 ui.link{
bsw@598 9 module = "area", view = "show", id = area.id,
bsw@598 10 attr = { class = "area_name" }, content = area.name
bsw@598 11 }
bsw@598 12 end }
bsw@598 13
bsw@598 14 ui.container{ attr = { class = "content" }, content = function()
bsw@598 15 ui.link{
bsw@598 16 module = "area", view = "show", id = area.id, params = { tab = "open", filter = "new" },
bsw@598 17 text = _("#{count} new", { count = area.issues_new_count })
bsw@598 18 }
bsw@598 19 slot.put(" · ")
bsw@598 20 ui.link{
bsw@598 21 module = "area", view = "show", id = area.id, params = { tab = "open", filter = "discussion" },
bsw@598 22 text = _("#{count} in discussion", { count = area.issues_discussion_count })
bsw@598 23 }
bsw@598 24 slot.put(" · ")
bsw@598 25 ui.link{
bsw@598 26 module = "area", view = "show", id = area.id, params = { tab = "open", filter = "verification" },
bsw@598 27 text = _("#{count} in verification", { count = area.issues_frozen_count })
bsw@598 28 }
bsw@598 29 slot.put(" · ")
bsw@598 30 ui.link{
bsw@598 31 module = "area", view = "show", id = area.id, params = { tab = "open", filter = "voting" },
bsw@598 32 text = _("#{count} in voting", { count = area.issues_voting_count })
bsw@598 33 }
bsw@598 34 slot.put(" · ")
bsw@598 35 ui.link{
bsw@598 36 module = "area", view = "show", id = area.id, params = { tab = "closed", filter = "finished" },
bsw@598 37 text = _("#{count} finished", { count = area.issues_finished_count })
bsw@598 38 }
bsw@598 39 slot.put(" · ")
bsw@598 40 ui.link{
bsw@598 41 module = "area", view = "show", id = area.id, params = { tab = "closed", filter = "cancelled" },
bsw@598 42 text = _("#{count} cancelled", { count = area.issues_cancelled_count })
bsw@598 43 }
bsw@598 44 end }
bsw@598 45
bsw@598 46 end }

Impressum / About Us