Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
c62e5129
Unverified
Commit
c62e5129
authored
8 years ago
by
Robin Appelman
Committed by
Morris Jobke
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
hide global credentials in personal when a user cant add mounts
parent
ce0604bd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/files_external/css/settings.css
+5
-0
5 additions, 0 deletions
apps/files_external/css/settings.css
apps/files_external/templates/settings.php
+19
-16
19 additions, 16 deletions
apps/files_external/templates/settings.php
with
24 additions
and
16 deletions
apps/files_external/css/settings.css
+
5
−
0
View file @
c62e5129
#files_external
{
margin-bottom
:
0
;
padding-bottom
:
0
;
}
#externalStorage
td
.status
{
#externalStorage
td
.status
{
/* overwrite conflicting core styles */
/* overwrite conflicting core styles */
display
:
table-cell
;
display
:
table-cell
;
...
...
This diff is collapsed.
Click to expand it.
apps/files_external/templates/settings.php
+
19
−
16
View file @
c62e5129
...
@@ -84,24 +84,9 @@
...
@@ -84,24 +84,9 @@
}
}
}
}
?>
?>
<form
autocomplete=
"false"
class=
"section"
action=
"#"
id=
"global_credentials"
>
<h2>
<?php
p
(
$l
->
t
(
'External Storage'
));
?>
</h2>
<p>
<?php
p
(
$l
->
t
(
'Global Credentials'
));
?>
</p>
<input
type=
"text"
name=
"username"
autocomplete=
"false"
value=
"
<?php
p
(
$_
[
'globalCredentials'
][
'user'
]);
?>
"
placeholder=
"
<?php
p
(
$l
->
t
(
'Username'
))
?>
"
/>
<input
type=
"password"
name=
"password"
autocomplete=
"false"
value=
"
<?php
p
(
$_
[
'globalCredentials'
][
'password'
]);
?>
"
placeholder=
"
<?php
p
(
$l
->
t
(
'Password'
))
?>
"
/>
<input
type=
"hidden"
name=
"uid"
value=
"
<?php
p
(
$_
[
'globalCredentialsUid'
]);
?>
"
/>
<input
type=
"submit"
value=
"
<?php
p
(
$l
->
t
(
'Save'
))
?>
"
/>
</form>
<form
id=
"files_external"
class=
"section"
data-encryption-enabled=
"
<?php
echo
$_
[
'encryptionEnabled'
]
?
'true'
:
'false'
;
?>
"
>
<form
id=
"files_external"
class=
"section"
data-encryption-enabled=
"
<?php
echo
$_
[
'encryptionEnabled'
]
?
'true'
:
'false'
;
?>
"
>
<h2>
<?php
p
(
$l
->
t
(
'External Storage'
));
?>
</h2>
<?php
if
(
isset
(
$_
[
'dependencies'
])
and
(
$_
[
'dependencies'
]
<>
''
))
print_unescaped
(
''
.
$_
[
'dependencies'
]
.
''
);
?>
<?php
if
(
isset
(
$_
[
'dependencies'
])
and
(
$_
[
'dependencies'
]
<>
''
))
print_unescaped
(
''
.
$_
[
'dependencies'
]
.
''
);
?>
<table
id=
"externalStorage"
class=
"grid"
data-admin=
'
<?php
print_unescaped
(
json_encode
(
$_
[
'visibilityType'
]
===
BackendService
::
VISIBILITY_ADMIN
));
?>
'
>
<table
id=
"externalStorage"
class=
"grid"
data-admin=
'
<?php
print_unescaped
(
json_encode
(
$_
[
'visibilityType'
]
===
BackendService
::
VISIBILITY_ADMIN
));
?>
'
>
<thead>
<thead>
...
@@ -200,3 +185,21 @@
...
@@ -200,3 +185,21 @@
</p>
</p>
<?php
endif
;
?>
<?php
endif
;
?>
</form>
</form>
<?php
if
(
$_
[
'visibilityType'
]
===
BackendService
::
VISIBILITY_ADMIN
||
$_
[
'allowUserMounting'
])
:
?>
<form
autocomplete=
"false"
class=
"section"
action=
"#"
id=
"global_credentials"
>
<p>
<?php
p
(
$l
->
t
(
'Global Credentials'
));
?>
</p>
<input
type=
"text"
name=
"username"
autocomplete=
"false"
value=
"
<?php
p
(
$_
[
'globalCredentials'
][
'user'
]);
?>
"
placeholder=
"
<?php
p
(
$l
->
t
(
'Username'
))
?>
"
/>
<input
type=
"password"
name=
"password"
autocomplete=
"false"
value=
"
<?php
p
(
$_
[
'globalCredentials'
][
'password'
]);
?>
"
placeholder=
"
<?php
p
(
$l
->
t
(
'Password'
))
?>
"
/>
<input
type=
"hidden"
name=
"uid"
value=
"
<?php
p
(
$_
[
'globalCredentialsUid'
]);
?>
"
/>
<input
type=
"submit"
value=
"
<?php
p
(
$l
->
t
(
'Save'
))
?>
"
/>
</form>
<?php
endif
;
?>
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