luci-base: support hiding the "Back to Overview" button in cbi maps
authorJo-Philipp Wich <jo@mein.io>
Thu, 3 May 2018 06:22:16 +0000 (08:22 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 3 May 2018 06:25:26 +0000 (08:25 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/view/cbi/footer.htm

index 4d332fd..e6acfb0 100644 (file)
@@ -1,6 +1,6 @@
        <%- if pageaction then -%>
        <div class="cbi-page-actions">
-               <% if redirect then %>
+               <% if redirect and not flow.hidebackbtn then %>
                <div style="float:left">
                        <input class="cbi-button cbi-button-link" type="button" value="<%:Back to Overview%>" onclick="location.href='<%=pcdata(redirect)%>'" />
                </div>