liquid_feedback_frontend

annotate app/main/initiative/_details.lua @ 907:319161d5a904

Some text phrases updated
author bsw
date Sun Sep 23 16:36:44 2012 +0200 (2012-09-23)
parents cc64a4fc6ab6
children c4e4be01285c
rev   line source
bsw/jbe@19 1 local initiative = param.get("initiative", "table")
bsw/jbe@19 2
bsw/jbe@19 3 ui.form{
bsw/jbe@19 4 attr = { class = "vertical" },
bsw/jbe@19 5 record = initiative,
bsw/jbe@19 6 readonly = true,
bsw/jbe@19 7 content = function()
bsw@907 8 ui.field.text{
bsw@907 9 label = _"Created at",
bsw@907 10 value = tostring(initiative.created)
bsw@907 11 }
bsw@907 12 if initiative.revoked then
bsw@907 13 ui.field.text{
bsw@907 14 label = _"Revoked at",
bsw@907 15 value = format.timestamp(initiative.revoked)
bsw@907 16 }
bsw@907 17 end
bsw@907 18 if initiative.admitted ~= nil then
bsw@907 19 ui.field.boolean{ label = _"Admitted", name = "admitted" }
bsw@907 20 end
bsw@907 21 if initiative.issue.fully_frozen and initiative.polling then
bsw@907 22 ui.field.text{ label = _"Admitted", value = "Implicitly admitted" }
bsw@907 23 end
bsw@718 24 if initiative.issue.closed then
bsw@718 25 ui.field.boolean{ label = _"Direct majority", value = initiative.direct_majority }
bsw@718 26 ui.field.boolean{ label = _"Indirect majority", value = initiative.indirect_majority }
bsw@718 27 ui.field.text{ label = _"Schulze rank", value = tostring(initiative.schulze_rank) .. " (" .. _("Status quo: #{rank}", { rank = initiative.issue.status_quo_schulze_rank }) .. ")" }
bsw@718 28 local texts = {}
bsw@718 29 if initiative.reverse_beat_path then
bsw@718 30 texts[#texts+1] = _"reverse beat path to status quo (including ties)"
bsw@718 31 end
bsw@718 32 if initiative.multistage_majority then
bsw@718 33 texts[#texts+1] = _"possibly instable result caused by multistage majority"
bsw@718 34 end
bsw@718 35 if #texts == 0 then
bsw@718 36 texts[#texts+1] = _"none"
bsw@718 37 end
bsw@718 38 ui.field.text{
bsw@718 39 label = _"Other failures",
bsw@718 40 value = table.concat(texts, ", ")
bsw@718 41 }
bsw@718 42 ui.field.boolean{ label = _"Eligible as winner", value = initiative.eligible }
bsw@718 43 end
bsw/jbe@19 44 end
bsw/jbe@19 45 }
bsw@274 46
bsw@274 47 execute.view{ module = "issue", view = "_details", params = { issue = initiative.issue } }

Impressum / About Us