Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Commits
d85214d4
Commit
d85214d4
authored
11 years ago
by
Nils Schneider
Browse files
Options
Downloads
Patches
Plain Diff
gluon-luci-admin: fix indentation
Replaces double-spaces with tabs to match surrounding code.
parent
efc958fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/gluon-luci-admin/files/usr/lib/lua/luci/controller/admin/index.lua
+9
-9
9 additions, 9 deletions
...i-admin/files/usr/lib/lua/luci/controller/admin/index.lua
with
9 additions
and
9 deletions
package/gluon-luci-admin/files/usr/lib/lua/luci/controller/admin/index.lua
+
9
−
9
View file @
d85214d4
...
@@ -16,8 +16,8 @@ $Id$
...
@@ -16,8 +16,8 @@ $Id$
module
(
"luci.controller.admin.index"
,
package
.
seeall
)
module
(
"luci.controller.admin.index"
,
package
.
seeall
)
function
index
()
function
index
()
local
uci_state
=
luci
.
model
.
uci
.
cursor_state
()
local
uci_state
=
luci
.
model
.
uci
.
cursor_state
()
local
configmode
=
uci_state
:
get_first
(
"gluon-config-mode"
,
"wizard"
,
"running"
,
"0"
)
==
"1"
local
configmode
=
uci_state
:
get_first
(
"gluon-config-mode"
,
"wizard"
,
"running"
,
"0"
)
==
"1"
-- Disable gluon-luci-admin when configmode is not enabled
-- Disable gluon-luci-admin when configmode is not enabled
if
not
configmode
then
if
not
configmode
then
...
@@ -30,14 +30,14 @@ function index()
...
@@ -30,14 +30,14 @@ function index()
root
.
index
=
true
root
.
index
=
true
end
end
local
page
=
entry
({
"admin"
},
alias
(
"admin"
,
"index"
),
_
(
"Expertmode"
),
10
)
local
page
=
entry
({
"admin"
},
alias
(
"admin"
,
"index"
),
_
(
"Expertmode"
),
10
)
page
.
sysauth
=
"root"
page
.
sysauth
=
"root"
if
configmode
then
if
configmode
then
-- force root to be logged in when running in configmode
-- force root to be logged in when running in configmode
page
.
sysauth_authenticator
=
function
()
return
"root"
end
page
.
sysauth_authenticator
=
function
()
return
"root"
end
else
else
page
.
sysauth_authenticator
=
"htmlauth"
page
.
sysauth_authenticator
=
"htmlauth"
end
end
page
.
index
=
true
page
.
index
=
true
entry
({
"admin"
,
"index"
},
form
(
"admin/index"
),
_
(
"Overview"
),
1
).
ignoreindex
=
true
entry
({
"admin"
,
"index"
},
form
(
"admin/index"
),
_
(
"Overview"
),
1
).
ignoreindex
=
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment