From 4d7e84b40511757d3355333c2c1572705899a9d0 Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Sun, 3 May 2015 01:58:07 +0200
Subject: [PATCH] gluon-config-mode-core: nicer LuCI view filenames

---
 .../usr/lib/lua/luci/controller/gluon-config-mode/index.lua     | 2 +-
 .../usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua     | 2 +-
 .../cbi/wizard.htm => gluon/cbi/config-mode.htm}                | 0
 .../view/{gluon-config-mode => gluon/config-mode}/reboot.htm    | 0
 4 files changed, 2 insertions(+), 2 deletions(-)
 rename package/gluon-config-mode-core/files/usr/lib/lua/luci/view/{gluon-config-mode/cbi/wizard.htm => gluon/cbi/config-mode.htm} (100%)
 rename package/gluon-config-mode-core/files/usr/lib/lua/luci/view/{gluon-config-mode => gluon/config-mode}/reboot.htm (100%)

diff --git a/package/gluon-config-mode-core/files/usr/lib/lua/luci/controller/gluon-config-mode/index.lua b/package/gluon-config-mode-core/files/usr/lib/lua/luci/controller/gluon-config-mode/index.lua
index 8f55f5401..c3ab070df 100644
--- a/package/gluon-config-mode-core/files/usr/lib/lua/luci/controller/gluon-config-mode/index.lua
+++ b/package/gluon-config-mode-core/files/usr/lib/lua/luci/controller/gluon-config-mode/index.lua
@@ -69,7 +69,7 @@ function action_reboot()
 
     local hostname = uci:get_first("system", "system", "hostname")
 
-    luci.template.render("gluon-config-mode/reboot", { parts=parts
+    luci.template.render("gluon/config-mode/reboot", { parts=parts
                                                      , hostname=hostname
                                                      })
   else
diff --git a/package/gluon-config-mode-core/files/usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua b/package/gluon-config-mode-core/files/usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua
index 706543b23..101a02e34 100644
--- a/package/gluon-config-mode-core/files/usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua
+++ b/package/gluon-config-mode-core/files/usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua
@@ -17,7 +17,7 @@ end
 
 f = SimpleForm("wizard")
 f.reset = false
-f.template = "gluon-config-mode/cbi/wizard"
+f.template = "gluon/cbi/config-mode"
 
 for _, s in ipairs(wizard) do
   s.section(f)
diff --git a/package/gluon-config-mode-core/files/usr/lib/lua/luci/view/gluon-config-mode/cbi/wizard.htm b/package/gluon-config-mode-core/files/usr/lib/lua/luci/view/gluon/cbi/config-mode.htm
similarity index 100%
rename from package/gluon-config-mode-core/files/usr/lib/lua/luci/view/gluon-config-mode/cbi/wizard.htm
rename to package/gluon-config-mode-core/files/usr/lib/lua/luci/view/gluon/cbi/config-mode.htm
diff --git a/package/gluon-config-mode-core/files/usr/lib/lua/luci/view/gluon-config-mode/reboot.htm b/package/gluon-config-mode-core/files/usr/lib/lua/luci/view/gluon/config-mode/reboot.htm
similarity index 100%
rename from package/gluon-config-mode-core/files/usr/lib/lua/luci/view/gluon-config-mode/reboot.htm
rename to package/gluon-config-mode-core/files/usr/lib/lua/luci/view/gluon/config-mode/reboot.htm
-- 
GitLab