liquid_feedback_frontend

diff app/main/area/_list.lua @ 10:72c5e0ee7c98

Version beta6

Bugfixes:
- Security fix: Every user was able to change the discussion URL of an initiative
- Creation of new issues in areas without default policies is now possible
- Members can now be sorted in different ways
- No error when trying to compare a draft with itself
- Added missing local statement to variable initialization in app/main/delegation/new.lua
- CSS flaw in initiative action bar fixed

New features:
- Possiblity to invite other users to become initiator
- Revokation of initiatives implemented
- Number of suggestions, supporters, etc. is shown on corresponding tabs of initiative view
- Members can now be sorted by account creation (default sorting is "newest first")
- Configuration option to create an automatic discussion link for all issues
- First draft of global timeline feature (not accessible via link yet)
- Custom stylesheet URL for users marked as developers

In area listing the number of closed issues is shown too

Renamed "author" field of initiative to "last author"

Removed wrongly included file app/main/member/_show_thumb.lua.orig in the distribution

Help texts updated
author bsw
date Sun Jan 10 12:00:00 2010 +0100 (2010-01-10)
parents 0ee1e0c42d4c
children 00d1004545f1
line diff
     1.1 --- a/app/main/area/_list.lua	Mon Jan 04 12:00:00 2010 +0100
     1.2 +++ b/app/main/area/_list.lua	Sun Jan 10 12:00:00 2010 +0100
     1.3 @@ -11,6 +11,8 @@
     1.4    :add_field("(SELECT COUNT(*) FROM issue WHERE issue.area_id = area.id AND issue.half_frozen NOTNULL AND issue.fully_frozen ISNULL AND issue.closed ISNULL)", "issues_frozen_count")
     1.5    :add_field("(SELECT COUNT(*) FROM issue WHERE issue.area_id = area.id AND issue.fully_frozen NOTNULL AND issue.closed ISNULL)", "issues_voting_count")
     1.6    :add_field({ "(SELECT COUNT(*) FROM issue LEFT JOIN direct_voter ON direct_voter.issue_id = issue.id AND direct_voter.member_id = ? WHERE issue.area_id = area.id AND issue.fully_frozen NOTNULL AND issue.closed ISNULL AND direct_voter.member_id ISNULL)", app.session.member.id }, "issues_to_vote_count")
     1.7 +  :add_field("(SELECT COUNT(*) FROM issue WHERE issue.area_id = area.id AND issue.fully_frozen NOTNULL AND issue.closed NOTNULL)", "issues_finished_count")
     1.8 +  :add_field("(SELECT COUNT(*) FROM issue WHERE issue.area_id = area.id AND issue.fully_frozen ISNULL AND issue.closed NOTNULL)", "issues_cancelled_count")
     1.9  
    1.10  ui.order{
    1.11    name = name,
    1.12 @@ -132,7 +134,33 @@
    1.13                params = { filter = "frozen", filter_voting = "not_voted" }
    1.14              }
    1.15            end
    1.16 -        }
    1.17 +        },
    1.18 +        {
    1.19 +          label = _"Finished",
    1.20 +          field_attr = { style = "text-align: right;" },
    1.21 +          content = function(record)
    1.22 +            ui.link{
    1.23 +              text = tostring(record.issues_finished_count),
    1.24 +              module = "area",
    1.25 +              view = "show",
    1.26 +              id = record.id,
    1.27 +              params = { filter = "finished", issue_list = "newest" }
    1.28 +            }
    1.29 +          end
    1.30 +        },
    1.31 +        {
    1.32 +          label = _"Cancelled",
    1.33 +          field_attr = { style = "text-align: right;" },
    1.34 +          content = function(record)
    1.35 +            ui.link{
    1.36 +              text = tostring(record.issues_cancelled_count),
    1.37 +              module = "area",
    1.38 +              view = "show",
    1.39 +              id = record.id,
    1.40 +              params = { filter = "cancelled", issue_list = "newest" }
    1.41 +            }
    1.42 +          end
    1.43 +        },
    1.44        }
    1.45      }
    1.46    end

Impressum / About Us