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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
55582047
Commit
55582047
authored
Aug 15, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve UI for Project settings page
parent
f230591b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
45 deletions
+58
-45
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+58
-45
No files found.
app/views/projects/edit.html.haml
View file @
55582047
.project-edit-container
.project-edit-container
.project-edit-errors
.project-edit-errors
.project-edit-content
.project-edit-content
.ui-box.white
%div
.title
%h3
.page-title
%strong
=
@project
.
name
Project settings:
project settings:
%p
.light
Some settings like transferring project are hidden inside danger area below
%hr
.form-holder
.form-holder
=
form_for
(
@project
,
remote:
true
)
do
|
f
|
=
form_for
(
@project
,
remote:
true
)
do
|
f
|
%fieldset
%fieldset
...
@@ -100,56 +101,68 @@
...
@@ -100,56 +101,68 @@
.form-actions
.form-actions
=
f
.
submit
'Save changes'
,
class:
"btn btn-save"
=
f
.
submit
'Save changes'
,
class:
"btn btn-save"
-
if
can?
(
current_user
,
:change_namespace
,
@project
)
%center
.light.prepend-top-20.padded
%h3
%i
.icon-warning-sign
Dangerous settings
%p
Project settings below may result in data loss!
=
link_to
'#'
,
class:
'btn js-toggle-visibility-link'
do
Show it to me
%i
.icon-chevron-down
.js-toggle-visibility-container.hide
-
if
can?
(
current_user
,
:change_namespace
,
@project
)
.ui-box.ui-box-danger
.title
Transfer project
.errors-holder
.form-holder
=
form_for
(
@project
,
url:
transfer_project_path
(
@project
),
remote:
true
,
html:
{
class:
'transfer-project'
})
do
|
f
|
.control-group
=
f
.
label
:namespace_id
do
%span
Namespace
.controls
.control-group
=
f
.
select
:namespace_id
,
namespaces_options
(
@project
.
namespace_id
),
{
prompt:
'Choose a project namespace'
},
{
class:
'chosen'
}
%ul
%li
Be careful. Changing project namespace can have unintended side effects
%li
You can transfer project only to namespaces you can manage
%li
You will need to update your local repositories to point to the new location.
.form-actions
=
f
.
submit
'Transfer'
,
class:
"btn btn-remove"
-
else
%p
.nothing_here_message
Only project owner can transfer a project
.ui-box.ui-box-danger
.ui-box.ui-box-danger
.title
Transfer project
.title
Rename repository
.errors-holder
.errors-holder
.form-holder
.form-holder
=
form_for
(
@project
,
url:
transfer_project_path
(
@project
),
remote:
true
,
html:
{
class:
'transfer-project'
}
)
do
|
f
|
=
form_for
(
@project
)
do
|
f
|
.control-group
.control-group
=
f
.
label
:
namespace_id
do
=
f
.
label
:
path
do
%span
Namespace
%span
Path
.controls
.controls
.control-group
.control-group
=
f
.
select
:namespace_id
,
namespaces_options
(
@project
.
namespace_id
),
{
prompt:
'Choose a project namespace'
},
{
class:
'chosen'
}
=
f
.
text_field
:path
%ul
%ul
%li
Be careful. Changing project namespace can have unintended side effects
%li
Be careful. Rename of project repo can have unintended side effects
%li
You can transfer project only to namespaces you can manage
%li
You will need to update your local repositories to point to the new location.
%li
You will need to update your local repositories to point to the new location.
.form-actions
.form-actions
=
f
.
submit
'Transfer'
,
class:
"btn btn-remove"
=
f
.
submit
'Rename'
,
class:
"btn btn-remove"
-
else
%p
.nothing_here_message
Only project owner can transfer a project
-
if
can?
(
current_user
,
:remove_project
,
@project
)
.ui-box.ui-box-danger
.ui-box.ui-box-danger
.title
Remove project
.title
Rename repository
.ui-box-body
.errors-holder
%p
.form-holder
Remove of project will cause removing repository and all related resources like issues, merge requests etc.
=
form_for
(
@project
)
do
|
f
|
%br
.control-group
%strong
Removed project can not be restored!
=
f
.
label
:path
do
%span
Path
=
link_to
'Remove project'
,
@project
,
confirm:
remove_project_message
(
@project
),
method: :delete
,
class:
"btn btn-remove"
.controls
-
else
.control-group
%p
.nothing_here_message
Only project owner can remove a project
=
f
.
text_field
:path
%ul
%li
Be careful. Rename of project repo can have unintended side effects
%li
You will need to update your local repositories to point to the new location.
.form-actions
=
f
.
submit
'Rename'
,
class:
"btn btn-remove"
-
if
can?
(
current_user
,
:remove_project
,
@project
)
.ui-box.ui-box-danger
.title
Remove project
.ui-box-body
%p
Remove of project will cause removing repository and all related resources like issues, merge requests etc.
%p
%strong
Removed project can not be restored!
=
link_to
'Remove project'
,
@project
,
confirm:
remove_project_message
(
@project
),
method: :delete
,
class:
"btn btn-remove btn-small"
-
else
%p
.nothing_here_message
Only project owner can remove a project
.save-project-loader.hide
.save-project-loader.hide
%center
%center
...
...
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