liquid_feedback_frontend
view app/main/interest/_show_box.lua @ 4:80c215dbf076
Version alpha5
Many optical changes and improved usability
Support for different wiki-formatting-engines
Help system
Many optical changes and improved usability
Support for different wiki-formatting-engines
Help system
author | bsw/jbe |
---|---|
date | Thu Dec 10 12:00:00 2009 +0100 (2009-12-10) |
parents | 768faea1096d |
children | afd9f769c7ae |
line source
2 local issue = param.get("issue", "table")
4 local interest = Interest:by_pk(issue.id, app.session.member.id)
6 if interest then
7 slot.select("actions", function()
9 ui.container{
10 attr = { class = "interest vote_info"},
11 content = function()
12 ui.container{
13 attr = {
14 class = "head head_active",
15 onclick = "document.getElementById('interest_content').style.display = 'block';"
16 },
17 content = function()
18 slot.put(_"Your are interested")
19 ui.image{
20 static = "icons/16/dropdown.png"
21 }
22 end
23 }
25 ui.container{
26 attr = { class = "content", id = "interest_content" },
27 content = function()
28 ui.container{
29 attr = {
30 class = "close",
31 style = "cursor: pointer;",
32 onclick = "document.getElementById('interest_content').style.display = 'none';"
33 },
34 content = function()
35 ui.image{ static = "icons/16/cross.png" }
36 end
37 }
38 ui.link{
39 content = _"Remove my interest",
40 module = "interest",
41 action = "update",
42 params = { issue_id = issue.id, delete = true },
43 routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
44 }
45 slot.put("<br />")
46 slot.put("<br />")
47 if interest.autoreject then
48 ui.field.text{ value = _"Autoreject is on." }
49 ui.link{
50 content = _"Remove autoreject",
51 module = "interest",
52 action = "update",
53 params = { issue_id = issue.id, autoreject = false },
54 routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
55 }
56 else
57 ui.field.text{ value = _"Autoreject is off." }
58 ui.link{
59 content = _"Set autoreject",
60 module = "interest",
61 action = "update",
62 params = { issue_id = issue.id, autoreject = true },
63 routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
64 }
65 end
66 end
67 }
68 end
69 }
70 end)
71 end