[luci] add button conditionally

Igor igor.iptv at gmail.com
Tue Oct 15 09:25:33 CEST 2013


I use this file (
https://dev.openwrt.org/attachment/ticket/12434/iface_status.2.htm) for
displaying signal strength on router with openwrt. In html code, before
last line "<%+cbi/valuefooter%>" I add line:
<table><input type="button" class="cbi-button cbi-button-up" value="<%:More
info%>"
onclick="location.href='<%=luci.dispatcher.build_url("admin/network/minfo")%>'"
/></table>

This page is for all interfaces (3g, wan, lan, ...) and button is displayed
on all pages. How to display button (More info) on 3g interface page only?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20131015/31bb0c84/attachment.html>


More information about the luci mailing list