Coder Social home page Coder Social logo

Comments (4)

Kiougar avatar Kiougar commented on May 20, 2024

What version of luci are you using? My <%=controller%> adds a trailing slash.

from luci-wrtbwmon.

fakuivan avatar fakuivan commented on May 20, 2024

LuCI 15.05-149-g0d8bbd2 Release (git-15.363.78009-956be55) / OpenWrt Chaos Calmer 15.05.1

from luci-wrtbwmon.

Kiougar avatar Kiougar commented on May 20, 2024

I see. I guess even with a double slash it still works. I will accept the pull request. Thanks! 👍

from luci-wrtbwmon.

fakuivan avatar fakuivan commented on May 20, 2024

Nice, at least in my vesion of luci, all references to <%=controller%> are preceded by a slash.

root@router:/usr/lib/lua/luci/view# grep -r '<%=controller%>' ./
./admin_system/reboot.htm:<p><a href="<%=controller%>/admin/system/reboot?reboot=1"><%:Perform reboot%></a></p>
./admin_system/reboot.htm:<script type="text/javascript">setTimeout("location='<%=controller%>/admin'", 60000)</script>
./admin_uci/changes.htm:                <form class="inline" method="get" action="<%=controller%>/admin/uci/apply">
./admin_uci/changes.htm:                <form class="inline" method="get" action="<%=controller%>/admin/uci/saveapply">
./admin_uci/changes.htm:                <form class="inline" method="get" action="<%=controller%>/admin/uci/revert">
./themes/bootstrap/footer.htm:              <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>
./themes/bootstrap/header.htm:    <a class="label notice" href="<%=controller%>/<%=category%>/uci/changes"><%:Unsaved Changes%>: <%=ucichanges%></a>
./wrtbwmon.htm:    <a href="<%=controller%>/admin/network/usage_config">Configuration</a>```

from luci-wrtbwmon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.