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
Jérome Perrin
gitlab-ce
Commits
746ffcfc
Commit
746ffcfc
authored
Jun 25, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make group settings menu looks similar to project settings menu
parent
8fb84104
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
26 deletions
+41
-26
app/views/groups/edit.html.haml
app/views/groups/edit.html.haml
+38
-25
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+3
-1
No files found.
app/views/groups/edit.html.haml
View file @
746ffcfc
.row
.row
.span
3
.span
2
%ul
.nav.nav-pills.nav-stacked
%ul
.nav.nav-pills.nav-stacked
.nav-stacked-menu
%li
.active
%li
.active
=
link_to
'Projects'
,
'#tab-projects'
,
'data-toggle'
=>
'tab'
=
link_to
'#tab-edit'
,
'data-toggle'
=>
'tab'
do
%i
.icon-edit
Edit Group
%li
%li
=
link_to
'Edit Group'
,
'#tab-edit'
,
'data-toggle'
=>
'tab'
=
link_to
'#tab-projects'
,
'data-toggle'
=>
'tab'
do
%i
.icon-folder-close
Projects
%li
%li
=
link_to
'Transfer'
,
'#tab-transfer'
,
'data-toggle'
=>
'tab'
=
link_to
'Transfer'
,
'#tab-transfer'
,
'data-toggle'
=>
'tab'
%li
%li
=
link_to
'Remove'
,
'#tab-remove'
,
'data-toggle'
=>
'tab'
=
link_to
'Remove'
,
'#tab-remove'
,
'data-toggle'
=>
'tab'
.span
9
.span
10
.tab-content
.tab-content
.tab-pane.active
#tab-
projects
.tab-pane.active
#tab-
edit
.ui-box
.ui-box
%h5
.title
Projects
%h5
.title
%ul
.well-list
%strong
=
@group
.
name
-
@group
.
projects
.
each
do
|
project
|
Group Settings:
%li
-
if
project
.
public
=
public_icon
-
else
=
private_icon
=
link_to
project
.
name_with_namespace
,
project
.pull-right
=
link_to
'Team'
,
project_team_index_path
(
project
),
id:
"edit_
#{
dom_id
(
project
)
}
"
,
class:
"btn btn-small"
=
link_to
'Edit'
,
edit_project_path
(
project
),
id:
"edit_
#{
dom_id
(
project
)
}
"
,
class:
"btn btn-small"
=
link_to
'Remove'
,
project
,
confirm:
remove_project_message
(
project
),
method: :delete
,
class:
"btn btn-small btn-remove"
-
if
@group
.
projects
.
blank?
%p
.nothing_here_message
This group has no projects yet
.tab-pane
#tab-edit
.ui-box
%h5
.title
Edit Group
%div
.form-holder
%div
.form-holder
=
form_for
@group
do
|
f
|
=
form_for
@group
do
|
f
|
-
if
@group
.
errors
.
any?
-
if
@group
.
errors
.
any?
...
@@ -52,6 +40,31 @@
...
@@ -52,6 +40,31 @@
.form-actions
.form-actions
=
f
.
submit
'Save group'
,
class:
"btn btn-save"
=
f
.
submit
'Save group'
,
class:
"btn btn-save"
.tab-pane
#tab-projects
.ui-box
%h5
.title
%strong
=
@group
.
name
Projects:
-
if
can?
current_user
,
:manage_group
,
@group
%span
.pull-right
=
link_to
new_project_path
(
namespace_id:
@group
.
id
),
class:
"btn btn-tiny"
do
%i
.icon-plus
New Project
%ul
.well-list
-
@group
.
projects
.
each
do
|
project
|
%li
-
if
project
.
public
=
public_icon
-
else
=
private_icon
=
link_to
project
.
name_with_namespace
,
project
.pull-right
=
link_to
'Team'
,
project_team_index_path
(
project
),
id:
"edit_
#{
dom_id
(
project
)
}
"
,
class:
"btn btn-small"
=
link_to
'Edit'
,
edit_project_path
(
project
),
id:
"edit_
#{
dom_id
(
project
)
}
"
,
class:
"btn btn-small"
=
link_to
'Remove'
,
project
,
confirm:
remove_project_message
(
project
),
method: :delete
,
class:
"btn btn-small btn-remove"
-
if
@group
.
projects
.
blank?
%p
.nothing_here_message
This group has no projects yet
.tab-pane
#tab-transfer
.tab-pane
#tab-transfer
.ui-box.ui-box-danger
.ui-box.ui-box-danger
%h5
.title
Transfer group
%h5
.title
Transfer group
...
...
app/views/projects/edit.html.haml
View file @
746ffcfc
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
.project-edit-errors
.project-edit-errors
.project-edit-content
.project-edit-content
.ui-box.white
.ui-box.white
%h5
.title
Settings:
%h5
.title
%strong
=
@project
.
name
Project Settings:
.form-holder
.form-holder
=
form_for
(
@project
,
remote:
true
)
do
|
f
|
=
form_for
(
@project
,
remote:
true
)
do
|
f
|
%fieldset
%fieldset
...
...
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