liquid_feedback_frontend
annotate app/main/issue/_show_box.lua @ 16:559c6be0e1e9
"Vote later" feature; Refactored interest box
| author | bsw | 
|---|---|
| date | Tue Feb 02 00:10:17 2010 +0100 (2010-02-02) | 
| parents | 768faea1096d | 
| children | 00d1004545f1 | 
| rev | line source | 
|---|---|
| bsw@2 | 1 local issue = param.get("issue", "table") | 
| bsw@2 | 2 | 
| bsw@2 | 3 slot.select("issue_info", function() | 
| bsw@2 | 4 ui.field.text{ | 
| bsw@2 | 5 label = _"State", | 
| bsw@2 | 6 value = issue.state_name | 
| bsw@2 | 7 } | 
| bsw@2 | 8 local time_left = issue.state_time_left | 
| bsw@2 | 9 if time_left then | 
| bsw@2 | 10 ui.field.text{ | 
| bsw@3 | 11 label = _"Time left", | 
| bsw@2 | 12 value = time_left | 
| bsw@2 | 13 } | 
| bsw@2 | 14 end | 
| bsw@2 | 15 local next_state_names = issue.next_states_names | 
| bsw@2 | 16 if next_state_names then | 
| bsw@2 | 17 ui.field.text{ | 
| bsw@3 | 18 label = _"Next state", | 
| bsw@2 | 19 value = next_state_names | 
| bsw@2 | 20 } | 
| bsw@2 | 21 end | 
| bsw@2 | 22 end) |