liquid_feedback_frontend
diff app/main/event/_list.lua @ 725:344e5fdce8c9
Fixed public search, made draft history available again
| author | bsw |
|---|---|
| date | Thu Jun 28 13:52:42 2012 +0200 (2012-06-28) |
| parents | 0daedb7c1c11 |
| children | 88e2278e1427 |
line diff
1.1 --- a/app/main/event/_list.lua Thu Jun 28 01:02:03 2012 +0200 1.2 +++ b/app/main/event/_list.lua Thu Jun 28 13:52:42 2012 +0200 1.3 @@ -151,15 +151,6 @@ 1.4 } 1.5 end } 1.6 1.7 - if event.suggestion_id then 1.8 - ui.container{ attr = { class = "suggestion" }, content = function() 1.9 - ui.link{ 1.10 - text = event.suggestion.name, 1.11 - module = "suggestion", view = "show", id = event.suggestion_id 1.12 - } 1.13 - end } 1.14 - end 1.15 - 1.16 ui.container{ attr = { class = "initiative_list" }, content = function() 1.17 if not event.initiative_id then 1.18 local initiatives_selector = Initiative:new_selector() 1.19 @@ -169,7 +160,7 @@ 1.20 issue = event.issue, 1.21 initiatives_selector = initiatives_selector, 1.22 no_sort = true, 1.23 - limit = 3 1.24 + limit = 5 1.25 } } 1.26 else 1.27 local initiatives_selector = Initiative:new_selector() 1.28 @@ -178,23 +169,20 @@ 1.29 issue = event.issue, 1.30 initiatives_selector = initiatives_selector, 1.31 no_sort = true, 1.32 - limit = 1 1.33 + limit = 1, 1.34 + hide_more_initiatives = true 1.35 } } 1.36 end 1.37 end } 1.38 1.39 - --[[ 1.40 - if event.initiative_id then 1.41 - ui.container{ attr = { class = "initiative_id" }, content = event.initiative_id } 1.42 - end 1.43 - if event.draft_id then 1.44 - ui.container{ attr = { class = "draft_id" }, content = event.draft_id } 1.45 - end 1.46 - if event.suggestion_id then 1.47 - ui.container{ attr = { class = "suggestion_id" }, content = event.suggestion_id } 1.48 - end 1.49 ---]] 1.50 - 1.51 + ui.container{ attr = { class = "content suggestion" }, content = function() 1.52 + if event.suggestion_id then 1.53 + ui.link{ 1.54 + text = event.suggestion.name, 1.55 + module = "suggestion", view = "show", id = event.suggestion_id 1.56 + } 1.57 + end 1.58 + end } 1.59 end } 1.60 end 1.61