# HG changeset patch # User bsw # Date 1581431386 -3600 # Node ID a59dd2ae9cd89c77f4dea857287747a8232f04a4 # Parent ed3c40911ae1bc6f41c628d1afa4eb823e19b375 Fixed links diff -r ed3c40911ae1 -r a59dd2ae9cd8 app/main/draft/new.lua --- a/app/main/draft/new.lua Tue Feb 11 15:24:36 2020 +0100 +++ b/app/main/draft/new.lua Tue Feb 11 15:29:46 2020 +0100 @@ -390,7 +390,7 @@ ui.link{ content = _"Cancel", module = initiative and "initiative" or issue and "issue" or "index", - view = area and "index" or "show", + view = area and not issue and "index" or "show", id = initiative_id or issue_id, params = { area = area_id, unit = area and area.unit_id or nil }, attr = { class = "mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect" } diff -r ed3c40911ae1 -r a59dd2ae9cd8 app/main/issue/_sidebar_whatcanido.lua --- a/app/main/issue/_sidebar_whatcanido.lua Tue Feb 11 15:24:36 2020 +0100 +++ b/app/main/issue/_sidebar_whatcanido.lua Tue Feb 11 15:29:46 2020 +0100 @@ -428,7 +428,7 @@ end } ui.tag { tag = "li", content = function () ui.link { - module = "initiative", view = "new", + module = "draft", view = "new", params = { issue_id = issue.id }, content = _"start a new competing initiative" }