liquid_feedback_frontend
diff app/main/initiative/show.lua @ 1519:056bccb61eee
Added object reference for geo references
| author | bsw |
|---|---|
| date | Thu Aug 20 15:08:00 2020 +0200 (2020-08-20) |
| parents | ed3c40911ae1 |
| children | a3a7120a67be |
line diff
1.1 --- a/app/main/initiative/show.lua Thu Aug 20 14:36:56 2020 +0200 1.2 +++ b/app/main/initiative/show.lua Thu Aug 20 15:08:00 2020 +0200 1.3 @@ -37,6 +37,17 @@ 1.4 } 1.5 } 1.6 1.7 + if initiative.location and initiative.location.marker_link then 1.8 + ui.container { 1.9 + attr = { class = "mdl-card__content mdl-card--no-bottom-pad" }, 1.10 + content = function() 1.11 + ui.tag{ content = _"This initiative references a FirstLife object." } 1.12 + slot.put(" ") 1.13 + ui.link{ external = initiative.location.marker_link, content = _"Open in FirstLife" } 1.14 + end 1.15 + } 1.16 + end 1.17 + 1.18 if direct_supporter and not initiative.issue.closed then 1.19 local supporter = app.session.member:get_reference_selector("supporters") 1.20 :add_where{ "initiative_id = ?", initiative.id }