luci-theme-material: remove link to distro repo from footer
[project/luci.git] / themes / luci-theme-material / luasrc / view / themes / material / footer.htm
index 5966152..d69417e 100755 (executable)
        local tree = disp.node()
        local categories = disp.node_childs(tree)
 %>
+                </div>
+                <footer class="mobile-hide">
+                    <a href="https://github.com/openwrt/luci">Powered by <%= ver.luciname %> (<%= ver.luciversion %>)</a> /
+                    <%= ver.distversion %>
                     <% if #categories > 1 then %>
-                    <footer>
-                        <ul class="breadcrumb pull-right" id="modemenu">
-                            <% for i, r in ipairs(categories) do %>
-                            <li<% if request[1] == r then %> class="active"<%end%>><a href="<%=controller%>/<%=r%>/"><%=striptags(translate(tree.nodes[r].title))%></a> <span class="divider">|</span></li>
-                            <% end %>
-                        </ul>
-                    </footer>
+                    <ul class="breadcrumb pull-right" id="modemenu">
+                        <% for i, r in ipairs(categories) do %>
+                        <li<% if request[1] == r then %> class="active"<%end%>><a href="<%=controller%>/<%=r%>/"><%=striptags(translate(tree.nodes[r].title))%></a> <span class="divider">|</span></li>
+                        <% end %>
+                    </ul>
                     <% end %>
-                </div>
+                </footer>
             </div>
         </div>
 
+    <script>
+        // thanks for Jo-Philipp Wich <jow@openwrt.org>
+        var luciLocation = <%= luci.http.write_json(luci.dispatcher.context.path) %>;
+    </script>
     <script src="<%=media%>/js/jquery.min.js"></script>
     <script src="<%=media%>/js/script.js"></script>
 </body>