liquid_feedback_frontend
view app/main/suggestion/show_tab.lua @ 95:6a12fb7e4963
Suggestion API, draft preview, word based diff, multiple fixes
- Added suggestion API
- Initiative API: Drafts optionally delivered as rendered html fragment
- Initiative API: Fixed wrong output of revoked timestamp when using JSON
- Preview added for initiative drafts
- Improved (word based) diff added
- Improved suggestion list
- Added missing sorting of initiative in vote list
- Filter state for member page initiative lists
- Fixed wrong status output in member history
- Fixed wrongly closed div in layout
- Added suggestion API
- Initiative API: Drafts optionally delivered as rendered html fragment
- Initiative API: Fixed wrong output of revoked timestamp when using JSON
- Preview added for initiative drafts
- Improved (word based) diff added
- Improved suggestion list
- Added missing sorting of initiative in vote list
- Filter state for member page initiative lists
- Fixed wrong status output in member history
- Fixed wrongly closed div in layout
| author | bsw |
|---|---|
| date | Mon Aug 30 21:52:19 2010 +0200 (2010-08-30) |
| parents | 0849be391140 |
| children |
line source
1 local suggestion = param.get("suggestion", "table") or Suggestion:by_id(param.get("suggestion_id"))
3 local tabs = {
4 module = "suggestion",
5 view = "show_tab",
6 static_params = {
7 suggestion_id = suggestion.id
8 },
9 }
11 tabs[#tabs+1] =
12 {
13 name = "description",
14 label = _"Suggestion",
15 module = "suggestion",
16 view = "_suggestion",
17 params = {
18 suggestion = suggestion
19 }
20 }
22 if app.session.member_id then
23 tabs[#tabs+1] =
24 {
25 name = "opinions",
26 label = _"Opinions",
27 module = "suggestion",
28 view = "_opinions",
29 params = {
30 suggestion = suggestion
31 }
32 }
33 end
35 ui.tabs(tabs)
