Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
a5208596
Commit
a5208596
authored
Jun 03, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ui-improvements' into 'master'
Ui improvements
parents
5b87a4dc
ad432583
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
61 deletions
+64
-61
app/views/admin/groups/_form.html.haml
app/views/admin/groups/_form.html.haml
+57
-0
app/views/admin/groups/edit.html.haml
app/views/admin/groups/edit.html.haml
+2
-30
app/views/admin/groups/new.html.haml
app/views/admin/groups/new.html.haml
+2
-30
app/views/admin/groups/show.html.haml
app/views/admin/groups/show.html.haml
+3
-1
No files found.
app/views/admin/groups/_form.html.haml
0 → 100644
View file @
a5208596
=
form_for
[
:admin
,
@group
],
html:
{
class:
"form-horizontal"
}
do
|
f
|
-
if
@group
.
errors
.
any?
.alert.alert-danger
%span
=
@group
.
errors
.
full_messages
.
first
.form-group.group_name_holder
=
f
.
label
:name
,
class:
'control-label'
do
Group name
.col-sm-10
=
f
.
text_field
:name
,
placeholder:
"Example Group"
,
class:
"form-control"
.form-group.group-description-holder
=
f
.
label
:description
,
"Details"
,
class:
'control-label'
.col-sm-10
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"form-control js-gfm-input"
,
rows:
4
.form-group.group-description-holder
=
f
.
label
:avatar
,
"Group avatar"
,
class:
'control-label'
.col-sm-10
%a
.choose-btn.btn.btn-small.js-choose-group-avatar-button
%i
.icon-paper-clip
%span
Choose File ...
%span
.file_name.js-avatar-filename
File name...
=
f
.
file_field
:avatar
,
class:
"js-group-avatar-input hidden"
.light
The maximum file size allowed is 100KB.
-
if
@group
.
new_record?
.form-group
.col-sm-2
.col-sm-10
.bs-callout.bs-callout-info
%ul
%li
A group is a collection of several projects
%li
Groups are private by default
%li
Members of a group may only view projects they have permission to access
%li
Group project URLs are prefixed with the group namespace
%li
Existing projects may be moved into a group
.form-actions
=
f
.
submit
'Create group'
,
class:
"btn btn-create"
=
link_to
'Cancel'
,
admin_groups_path
,
class:
"btn btn-cancel"
-
else
.form-group.group_name_holder
=
f
.
label
:path
,
class:
'control-label'
do
%span
Group path
.col-sm-10
=
f
.
text_field
:path
,
placeholder:
"example-group"
,
class:
"form-control danger"
.bs-callout.bs-callout-danger
%ul
%li
Changing group path can have unintended side effects.
%li
Renaming group path will rename directory for all related projects
%li
It will change web url for access group and group projects.
%li
It will change the git path to repositories under this group.
.form-actions
=
f
.
submit
'Save changes'
,
class:
"btn btn-primary"
=
link_to
'Cancel'
,
admin_group_path
(
@group
),
class:
"btn btn-cancel"
app/views/admin/groups/edit.html.haml
View file @
a5208596
%h3
.page-title
Edit
Group
%h3
.page-title
Edit
group:
#{
@group
.
name
}
%hr
%hr
=
form_for
[
:admin
,
@group
],
html:
{
class:
"form-horizontal"
}
do
|
f
|
=
render
'form'
-
if
@group
.
errors
.
any?
.alert.alert-danger
%span
=
@group
.
errors
.
full_messages
.
first
.form-group.group_name_holder
=
f
.
label
:name
,
class:
'control-label'
do
Group name
.col-sm-10
=
f
.
text_field
:name
,
placeholder:
"Example Group"
,
class:
"form-control"
.form-group.group-description-holder
=
f
.
label
:description
,
"Details"
,
class:
'control-label'
.col-sm-10
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"form-control js-gfm-input"
,
rows:
4
.form-group.group_name_holder
=
f
.
label
:path
,
class:
'control-label'
do
%span
.cred
Group path
.col-sm-10
=
f
.
text_field
:path
,
placeholder:
"example-group"
,
class:
"form-control danger"
%ul
.cred
%li
Changing group path can have unintended side effects.
%li
Renaming group path will rename directory for all related projects
%li
It will change web url for access group and group projects.
%li
It will change the git path to repositories under this group.
.form-actions
=
f
.
submit
'Save changes'
,
class:
"btn btn-primary"
=
link_to
'Cancel'
,
admin_groups_path
,
class:
"btn btn-cancel"
app/views/admin/groups/new.html.haml
View file @
a5208596
%h3
.page-title
New
G
roup
%h3
.page-title
New
g
roup
%hr
%hr
=
form_for
[
:admin
,
@group
],
html:
{
class:
'group-form form-horizontal'
}
do
|
f
|
=
render
'form'
-
if
@group
.
errors
.
any?
.alert.alert-danger
%span
=
@group
.
errors
.
full_messages
.
first
.form-group
=
f
.
label
:name
,
class:
'control-label'
do
Group name
.col-sm-10
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"form-control"
.form-group.group-description-holder
=
f
.
label
:description
,
"Details"
,
class:
'control-label'
.col-sm-10
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"form-control js-gfm-input"
,
rows:
4
.form-group
.col-sm-2
.col-sm-10
%ul
%li
A group is a collection of several projects
%li
Groups are private by default
%li
Members of a group may only view projects they have permission to access
%li
Group project URLs are prefixed with the group namespace
%li
Existing projects may be moved into a group
.form-actions
=
f
.
submit
'Create group'
,
class:
"btn btn-create"
app/views/admin/groups/show.html.haml
View file @
a5208596
%h3
.page-title
%h3
.page-title
Group:
#{
@group
.
name
}
Group:
#{
@group
.
name
}
=
link_to
edit_admin_group_path
(
@group
),
class:
"btn
btn-small
pull-right"
do
=
link_to
edit_admin_group_path
(
@group
),
class:
"btn pull-right"
do
%i
.icon-edit
%i
.icon-edit
Edit
Edit
%hr
%hr
...
@@ -11,6 +11,8 @@
...
@@ -11,6 +11,8 @@
.panel-heading
.panel-heading
Group info:
Group info:
%ul
.well-list
%ul
.well-list
%li
=
image_tag
group_icon
(
@group
.
path
),
class:
"avatar s60"
%li
%li
%span
.light
Name:
%span
.light
Name:
%strong
=
@group
.
name
%strong
=
@group
.
name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment