Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
e681e1ee
Commit
e681e1ee
authored
11 years ago
by
Raghu Nayyar
Committed by
Arthur Schiwon
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Initial Commit: Takes Quota Settings inside Navigation, Changes Create -> Add Group
parent
f751e0bc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
settings/js/users/groups.js
+9
-0
9 additions, 0 deletions
settings/js/users/groups.js
settings/templates/users.php
+35
-31
35 additions, 31 deletions
settings/templates/users.php
with
44 additions
and
31 deletions
settings/js/users/groups.js
+
9
−
0
View file @
e681e1ee
...
...
@@ -127,4 +127,13 @@ $(document).ready( function () {
});
});
// Implements Quota Settings Toggle.
$
(
'
#app-navigation
'
).
find
(
'
.settings-button
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
stopPropagation
();
$
(
'
#app-settings
'
).
removeClass
(
'
open
'
);
$
(
'
#app-settings
'
).
toggleClass
(
'
open
'
);
$
(
document
).
click
(
function
()
{
$
(
'
#app-settings
'
).
removeClass
(
'
open
'
);
});
});
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
settings/templates/users.php
+
35
−
31
View file @
e681e1ee
...
...
@@ -21,7 +21,7 @@ $_['subadmingroups'] = array_flip($items);
<li>
<form
id=
"newgroup"
>
<input
type=
"text"
id=
"newgroupname"
placeholder=
"
<?php
p
(
$l
->
t
(
'Group'
));
?>
..."
/>
<input
type=
"submit"
class=
"button"
value=
"
<?php
p
(
$l
->
t
(
'
Create
'
))
?>
"
/>
<input
type=
"submit"
class=
"button"
value=
"
<?php
p
(
$l
->
t
(
'
Add Group
'
))
?>
"
/>
</form>
</li>
<!-- Everyone -->
...
...
@@ -54,9 +54,14 @@ $_['subadmingroups'] = array_flip($items);
</li>
<?php
endforeach
;
?>
</ul>
<!-- Default storage -->
<div
class=
"app-settings"
>
<div
id=
"app-settings"
class=
""
style=
""
>
<div
id=
"app-settings-header"
>
<button
class=
"settings-button"
tabindex=
"0"
></button>
</div>
<div
id=
"app-settings-content"
>
<div
class=
"quota"
>
<!-- Default storage -->
<span>
<?php
p
(
$l
->
t
(
'Default Quota'
));
?>
</span>
<?php
if
((
bool
)
$_
[
'isadmin'
])
:
?>
<select
class=
'quota'
data-inputtitle=
"
<?php
p
(
$l
->
t
(
'Please enter storage quota (ex: "512 MB" or "12 GB")'
))
?>
"
>
...
...
@@ -75,8 +80,7 @@ $_['subadmingroups'] = array_flip($items);
<?php
endif
;
?>
<?php
endforeach
;
?>
<?php
if
(
$_
[
'defaultQuotaIsUserDefined'
])
:
?>
<option
selected=
"selected"
value=
'
<?php
p
(
$_
[
'default_quota'
]);
?>
'
>
<option
selected=
"selected"
value=
'
<?php
p
(
$_
[
'default_quota'
]);
?>
'
>
<?php
p
(
$_
[
'default_quota'
]);
?>
</option>
<?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