liquid_feedback_frontend
annotate env/ui/field/rank.lua @ 11:77d58efe99fd
Version beta7
Important security fixes:
- Added missing HTML encoding to postal address of member
- Link to discussion URL only if it starts with http(s)://
Other bugfixes:
- Fixed wrong display of 2nd level delegating voters for an initiative
- Do not display invited initiators as initiators while voting
- Added missing translation
New features:
- Public message of the day
- Both direct and indirect supporter count is shown in tab heads
- Support shown in initiative lists
Language chooser at the login page has been added (again)
Important security fixes:
- Added missing HTML encoding to postal address of member
- Link to discussion URL only if it starts with http(s)://
Other bugfixes:
- Fixed wrong display of 2nd level delegating voters for an initiative
- Do not display invited initiators as initiators while voting
- Added missing translation
New features:
- Public message of the day
- Both direct and indirect supporter count is shown in tab heads
- Support shown in initiative lists
Language chooser at the login page has been added (again)
author | bsw |
---|---|
date | Fri Jan 22 12:00:00 2010 +0100 (2010-01-22) |
parents | 3bfb2fcf7ab9 |
children | 00d1004545f1 |
rev | line source |
---|---|
bsw/jbe@0 | 1 function ui.field.rank(args) |
bsw/jbe@0 | 2 ui.form_element(args, {fetch_value = true}, function(args) |
bsw/jbe@0 | 3 local value = args.value |
bsw/jbe@0 | 4 ui.tag{ |
bsw/jbe@0 | 5 attr = { class = "rank" }, |
bsw/jbe@0 | 6 content = function() |
bsw/jbe@0 | 7 if value == 1 then |
bsw/jbe@0 | 8 ui.image{ static = "icons/16/award_star_gold_2.png" } |
bsw/jbe@0 | 9 elseif value then |
bsw/jbe@0 | 10 ui.image{ static = "icons/16/award_star_silver_2.png" } |
bsw/jbe@0 | 11 else |
bsw/jbe@0 | 12 ui.image{ static = "icons/16/cross.png" } |
bsw/jbe@0 | 13 end |
bsw/jbe@0 | 14 if value then |
bsw/jbe@0 | 15 ui.tag{ |
bsw/jbe@0 | 16 attr = { class = "value" }, |
bsw/jbe@0 | 17 content = tostring(value) |
bsw/jbe@0 | 18 } |
bsw/jbe@0 | 19 end |
bsw/jbe@0 | 20 end |
bsw/jbe@0 | 21 } |
bsw/jbe@0 | 22 end) |
bsw/jbe@0 | 23 end |