liquid_feedback_frontend
diff app/main/issue/_list.lua @ 1843:b01d9920371b
merge
author | jbe |
---|---|
date | Thu Feb 03 15:57:22 2022 +0100 (2022-02-03) |
parents | cb2fc0c24e35 |
children |
line diff
1.1 --- a/app/main/issue/_list.lua Thu Feb 03 15:54:23 2022 +0100 1.2 +++ b/app/main/issue/_list.lua Thu Feb 03 15:57:22 2022 +0100 1.3 @@ -15,8 +15,12 @@ 1.4 mode = "timeline" 1.5 end 1.6 1.7 -if config.single_unit_id then 1.8 - for_unit = Unit:by_id(config.single_unit_id) 1.9 +if app.single_unit_id then 1.10 + if request.get_param{ name = "unit" } then 1.11 + for_unit = Unit:by_id(request.get_param{ name = "unit" }) 1.12 + else 1.13 + for_unit = Unit:by_id(app.single_unit_id) 1.14 + end 1.15 end 1.16 1.17 local selector 1.18 @@ -201,8 +205,8 @@ 1.19 if not for_issue and not for_initiative then 1.20 ui.container{ attr = { class = "mdl-card__title mdl-card--has-fab mdl-card--border card-issue" }, content = function() 1.21 ui.container{ attr = { class = "contextlinks" }, content = function() 1.22 - if not (config.single_unit_id and config.single_area_id) then 1.23 - if not config.single_unit_id then 1.24 + if not (app.single_unit_id and config.single_area_id) then 1.25 + if not app.single_unit_id then 1.26 ui.icon("group") 1.27 slot.put(" ") 1.28 ui.link{ 1.29 @@ -210,7 +214,7 @@ 1.30 attr = { class = "unit" }, content = issue.area.unit.name } 1.31 end 1.32 if not config.single_area_id then 1.33 - if not config.single_unit_id then 1.34 + if not app.single_unit_id then 1.35 slot.put(" ") 1.36 end 1.37 ui.icon("category") 1.38 @@ -413,6 +417,9 @@ 1.39 ui.paginate{ 1.40 selector = selector, 1.41 per_page = 25, 1.42 + link_attr = { class = "mdl-button mdl-js-button mdl-button--raised" }, 1.43 + active_link_attr = { class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored" }, 1.44 + position = "after", 1.45 content = doit 1.46 } 1.47 end