summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2016-03-20luci-base: fix bug in util.lua in 'shellsqescape'Hannu Nyman
Fix a bug introduced by #561 Function 'shellsqescape' calls 'gsub' with the empty result string 'res' instead of the actual parameter 'value'. This leads into error: .../util.lua:160: bad argument #1 to 'gsub' (string expected, got nil) Fix error by passing the correct parameter to the function. After the fix, the unmount button introduced by #561 finally works. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-03-19luci-mod-admin-full: Fix dhcpv6 ra_management option stateless valueHannu Nyman
Fix dhcpv6 ra_management option's handling of "stateless" value. Default value for the option is 1, so trying to store "" instead of "0" for stateless is not working. This fixes #676 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-03-17luci-mod-admin-full: allow writing empty crontab configFlorian Eckert
Write an empty crontab file to remove all content from file /etc/crontabs/root Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
2016-03-17luci-mod-admin-full: add sleep before sysupgradeJo-Philipp Wich
- Under some conditions the system will shutdown uhttpd before the page will be delivered to the client. Waiting one second should eleminate this behaviour. Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com> Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-03-17Merge pull request #655 from hnyman/nat6Jo-Philipp Wich
Add support for showing ipv6 NAT table in Luci
2016-03-16Add support for showing ipv6 NAT table in LuciHannu Nyman
When kmod-nf-nat6 and kmod-ipt-nat6 are installed, the firewall has also the 'nat' table for ipv6, and packages like 'adblock' utilize that table. Currently that table is not shown on the Luci firewall status page, although it is visible by 'ip6tables -L -v -t nat' from console. Detect 'nat' table's presence from /proc/net/ip6_tables_names Show 'nat' table in Status->Firewall->IPv6 if that table is present. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-03-12luci-app-radvd: mark BROKEN as radvd is still in oldpackagesHannu Nyman
Mark luci-app-radvd BROKEN as it has dependency to radvd, which is still in oldpackages repo. This commit fixes #553 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-03-11luci-base: Include Openwrt build revision in displayed version stringHannu Nyman
The version string displayed in the footer and the overview page contains both LuCI and Openwrt versions. But due to differences in the contents of /etc/openwrt_release the exact Openwrt revision r..... may be missing: * In trunk that revision is included in the DISTRIB_DESCRIPTION field that is displayed in Luci as the Openwrt version. * In release branches, that field contains the release number like 15.05. Revision number is always present in DISTRIB_REVISION field, so add the revision from that field in case the revision is not already present in the string. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-03-11Merge pull request #669 from hnyman/git-branchJo-Philipp Wich
LuCI: Display the proper LuCI git branch in GUI
2016-03-10LuCI: Display the proper LuCI git branch in GUIHannu Nyman
Adjust luci.mk and luci-base to find out correctly if Luci is built from master or from a branch. Display that value in the footer and the overview page. * Evaluate the git branch in luci.mk and pass that to LuCI submodules as a make variable. Use branch name, ignore tags. * Deprecate svn detection in luci-base's mkversion.sh that generates version.lua. Simply use the value passed by make. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-03-08Merge pull request #665 from hauke/lantiq-dslJo-Philipp Wich
add configuration for the DSL line
2016-03-07Merge pull request #666 from chris5560/masterChristian Schoenebeck
luci-app-polipo: fix Parent proxy address field check
2016-03-07luci-app-polipo: fix Parent proxy address field checkChristian Schoenebeck
fix Parent proxy address field check https://dev.openwrt.org/ticket/15680 Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-03-07luci-mod-admin-full: add dsl configurationHauke Mehrtens
This makes it possible to configure the DSL line from luci. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-03-07luci-mod-admin-full: extend dsl statsHauke Mehrtens
This adds a lot of new status information about the dsl line. It now looks like this on a Telekom line: Status: UP Line State: showtime_tc_sync [0x801] Line Mode: G.993.2 (VDSL2) Annex: B Profile: 17a Data Rate: 51.391 Mb/s / 10.046 Mb/s Max. Attainable Data Rate (ATTNDR): 63.817 Mb/s / 23.908 Mb/s Latency: 4.0 ms / 8.0 ms Line Attenuation (LATN): 10.5 dB / 9.9 dB Signal Attenuation (SATN): 8.2 dB / 14.4 dB Noise Margin (SNR): 10.5 dB / 9.7 dB Aggregate Transmit Power(ACTATP): -14 dB / 12.4 dB Forward Error Correction Seconds (FECS): 1 / 1723485 Errored seconds (ES): 0 / 2477 Severely Errored Seconds (SES): 0 / 50 Loss of Signal Seconds (LOSS): 0 / 0 Unavailable Seconds (UAS): 31 / 31 Header Error Code Errors (HEC): 0 / 0 Non Pre-emtive CRC errors (CRC_P): 0 / 0 Pre-emtive CRC errors (CRCP_P): 0 / 0 Line Uptime: 2m 3s ATU-C System Vendor ID: Broadcom 176.15 Power Management Mode: L0 - Synchronized Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-03-07luci-mod-admin-full: rename ADSL to DSLHauke Mehrtens
This could also be a VDSL link Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-03-07Merge pull request #664 from chris5560/masterChristian Schoenebeck
luci-app-ddns: fixes because uclient-fetch support "force ip version"
2016-03-07luci-app-ddns: fixes because uclient-fetch support "force ip version"Christian Schoenebeck
- corrections because uclient-fetch now support "force ip version" - remove translations already part of base.po/base.pot Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-03-01Merge pull request #659 from NeoRaider/default-languageJo-Philipp Wich
modules/base: dispatcher: use default language if automatic choice fails
2016-03-01modules/base: dispatcher: use default language if automatic choice failsMatthias Schiffer
Fall back to default language if "auto" is configured, but none provided by the browser matches. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-02-29remove bensheim and heppenheim as requested here: ↵Manuel Munz
https://github.com/freifunk/meshkit/issues/20
2016-02-29Merge pull request #653 from tsl0922/tsl0922-patch-1Hannu Nyman
luci-theme-material: remove the double slash (//) from menu url
2016-02-28luci-app-adblock: conform to adblock 0.90Hannu Nyman
* Add support for disabling "force DNS queries to local resolver" option * Remove deprecated logging options Additionally remove unnecessary rmempty definitions. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-26i18n: sync translationsHannu Nyman
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-26luci-mod-admin-full: host-specific dhcp lease time option for static hostsHannu Nyman
Enable setting a host-specific lease time for static hosts. Format is similar as for the default lease time: e.g. 2m, 12h, 3d, infinite Default lease time is used for all hosts without host-specific definition. Support for the option was added to Openwrt trunk by r48801: https://dev.openwrt.org/changeset/48801 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-26luci-theme-material: remove the double slash (//) from menu urlShuanglei Tao
Signed-off-by: Shuanglei Tao <tsl0922@gmail.com>
2016-02-24luci-base: cbi: fix misplaced ID in nullsection templateJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-24luci-base: cbi: also initialize JS if pageactions are disabledJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-23luci-base: cbi: fix dependency handling of list and multivalues with ↵Jo-Philipp Wich
radio/checkbox widgets Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-22luci-app-adblock: remove deprecated optionsHannu Nyman
Remove support for options deprecated in adblock 0.80.1 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-21luci-app-adblock: conform to adblock 0.80Hannu Nyman
* Change "debug log" to "log" * Add support for source descriptions * Support new options for ping targets * Simplify link to readme Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-20luci-base: luci.sys: canonicalize src and dest addrs in luci.sys.net.conntrack()Jo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-20luci-app-adblock: Add support for optional config valuesHannu Nyman
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-19luci-base: cbi: fix button handling for dynamic listsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-19luci-app-adblock: Beautify blocklist selection table and reorganiseHannu Nyman
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-18Merge pull request #644 from chris5560/masterChristian Schoenebeck
luci-base: fixed tabbed map when using NamedSection of same type
2016-02-18Merge pull request #647 from LuttyYang/masterHannu Nyman
luci-theme-material: Decrease font and spacing
2016-02-18luci-theme-material: Rasterization CodeLutty Yang
Signed-off-by: Lutty Yang <lutty@wcan.in>
2016-02-18luci-theme-material: Decrease font and spacingLutty Yang
1) Decrease font and spacing 2) Synchronized to the LUCI version 99f5d4e Signed-off-by: Lutty Yang <lutty@wcan.in>
2016-02-17luci-base: cbi.js: properly round down numbers for %u and %d patternsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-16luci-app-adblock: User interface for the 'adblock' packageHannu Nyman
Simple user interface for the 'adblock' package from packages feed. Adds 'Adblock' item to the Services menu in LuCI. Allows enabling/disabling the service and selecting blocklists. Configuration of the blocklist URLs and selection of Shalla categories needs to be done manually to the config file, if needed. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-15luci-base: cbi.js: string formatting fixesJo-Philipp Wich
* Fix left and right justify/padding in formats * Do not emit decimal numbers for small values in %m format Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10luci-app-firewall: rely on auto-serialization for combobox choicesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10luci-base: cbi: rely on auto-serialization for combobox choicesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10luci-base: cbi: rework ListValue and MultiValue templatesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10luci-base: dispatcher: let attr() automatically serialize JSONJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10luci-base: cbi: properly handle dependant elements without parentJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10luci-base: cbi: only spawn dynlist sub-comboboxes if choices are availableJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10luci-app-firewall: align custom cbi teplates with new codeJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10luci-base: cbi: further refactoringJo-Philipp Wich
Eliminate more inline scripts in favor to global initialization, use a global object for sharing fixed strings instead of passing them to each invocation. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>