Merge pull request #478 from LuttyYang/master
authorHannu Nyman <hannu.nyman@iki.fi>
Thu, 17 Sep 2015 08:36:43 +0000 (11:36 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Thu, 17 Sep 2015 08:36:43 +0000 (11:36 +0300)
Merge new theme 'material' / luci-theme-material

Material is a clean HTML5 theme for LuCI.
It is based on luci-theme-bootstrap and MUI.

applications/luci-app-firewall/luasrc/model/cbi/firewall/zone-details.lua
documentation/SubmitPatchesHowTo:.md [deleted file]

index 46b3744..6c90476 100644 (file)
@@ -60,7 +60,7 @@ s:tab("advanced", translate("Advanced Settings"))
 name = s:taboption("general", Value, "name", translate("Name"))
 name.optional = false
 name.forcewrite = true
-name.datatype = "uciname"
+name.datatype = "and(uciname,maxlength(14))"
 
 function name.write(self, section, value)
        if zone:name() ~= value then
@@ -76,15 +76,6 @@ function name.write(self, section, value)
        }
 end
 
-function name.validate(self, value)
-       -- fw3 defines 14 as the maximum length of zone name
-       if #value > 14 then
-               return nil, translate("Zone name is too long")
-       else
-               return value
-       end
-end
-
 p = {
        s:taboption("general", ListValue, "input", translate("Input")),
        s:taboption("general", ListValue, "output", translate("Output")),
diff --git a/documentation/SubmitPatchesHowTo:.md b/documentation/SubmitPatchesHowTo:.md
deleted file mode 100644 (file)
index cdd1552..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-# Checkout svn
-       
-       svn co http://svn.luci.subsignal.org/luci/trunk
-       
-and change to that directory:
-       
-       cd trunk
-       
-# Make your changes
-
-Edit the files you want to change. If you add some new files you need to add them to the svn tree:
-       
-       svn add <dir/files>
-       
-Where <dir/files> are the directories/files you have added. Its possible to specify multiple files/directories here.
-
-# Use svn diff to generate a patch with your changes
-
-To check if your changes look ok first do:
-       
-       svn diff <dir/files>
-       
-and check the output. Again you can specify multiple dirs/directories here.
-
-If everything looks like expected save the patch:
-       
-       svn diff <dir/files> > ./mypatch.patch
-       
-
-# Submit patches
-
-Use the [Ticket system](http://luci.subsignal.org/trac/newticket) to submit your patch.
-