liquid_feedback_frontend
diff app/main/issue/show_tab.lua @ 525:63d6549cc00b
Delegation chain preview improved, better visualisation of current context, code cleanup
| author | bsw |
|---|---|
| date | Fri May 18 19:07:07 2012 +0200 (2012-05-18) |
| parents | 2c977a63edeb |
| children | 4cee33ad5e16 |
line diff
1.1 --- a/app/main/issue/show_tab.lua Tue Apr 17 00:07:04 2012 +0200 1.2 +++ b/app/main/issue/show_tab.lua Fri May 18 19:07:07 2012 +0200 1.3 @@ -18,25 +18,11 @@ 1.4 static_params = { issue_id = issue.id }, 1.5 } 1.6 1.7 -tabs[#tabs+1] = 1.8 - { 1.9 - name = "initiatives", 1.10 - label = _"Initiatives", 1.11 - icon = { static = "icons/16/script.png" }, 1.12 - module = "issue", 1.13 - view = "_list_initiatives", 1.14 - params = { 1.15 - issue = issue 1.16 - } 1.17 - } 1.18 - 1.19 - 1.20 if app.session.member_id then 1.21 tabs[#tabs+1] = 1.22 { 1.23 name = "interested_members", 1.24 - label = _"Members" .. " (" .. tostring(interested_members_selector:count()) .. ")" , 1.25 - icon = { static = "icons/16/eye.png" }, 1.26 + label = _"Interested" .. " (" .. tostring(interested_members_selector:count()) .. ")" , 1.27 module = "member", 1.28 view = "_list", 1.29 params = { 1.30 @@ -49,7 +35,6 @@ 1.31 { 1.32 name = "delegations", 1.33 label = _"Delegations" .. " (" .. tostring(delegations_selector:count()) .. ")" , 1.34 - icon = { static = "icons/16/table_go.png" }, 1.35 module = "delegation", 1.36 view = "_list", 1.37 params = { delegations_selector = delegations_selector } 1.38 @@ -60,11 +45,21 @@ 1.39 { 1.40 name = "details", 1.41 label = _"Details", 1.42 - icon = { static = "icons/16/magnifier.png" }, 1.43 module = "issue", 1.44 view = "_details", 1.45 params = { issue = issue } 1.46 } 1.47 + 1.48 +if config.etherpad then 1.49 + tabs[#tabs+1] = 1.50 + { 1.51 + name = "pad", 1.52 + label = _"Pad", 1.53 + module = "issue", 1.54 + view = "_pad", 1.55 + params = { issue = issue } 1.56 + } 1.57 +end 1.58 1.59 ui.tabs(tabs) 1.60