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
e68955b4
Commit
e68955b4
authored
Mar 19, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add permission messages to project edit
parent
fb1c8506
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
app/views/projects/_form.html.haml
app/views/projects/_form.html.haml
+10
-6
No files found.
app/views/projects/_form.html.haml
View file @
e68955b4
...
...
@@ -29,11 +29,6 @@
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"span5"
-
unless
@repository
.
heads
.
empty?
.clearfix
=
f
.
label
:default_branch
,
"Default Branch"
.input
=
f
.
select
(
:default_branch
,
@repository
.
heads
.
map
(
&
:name
),
{},
style:
"width:210px;"
)
.clearfix
=
f
.
label
:description
do
Project description
...
...
@@ -41,6 +36,11 @@
.input
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"span5"
,
rows:
3
,
maxlength:
250
-
unless
@repository
.
heads
.
empty?
.clearfix
=
f
.
label
:default_branch
,
"Default Branch"
.input
=
f
.
select
(
:default_branch
,
@repository
.
heads
.
map
(
&
:name
),
{},
style:
"width:210px;"
)
-
if
can?
(
current_user
,
:change_public_mode
,
@project
)
%fieldset
.public-mode
...
...
@@ -104,7 +104,7 @@
=
f
.
submit
'Save'
,
class:
"btn btn-save"
.tab-pane
#tab-transfer
-
if
can?
current_user
,
:change_namespace
,
@project
-
if
can?
(
current_user
,
:change_namespace
,
@project
)
.ui-box.ui-box-danger
%h5
.title
Transfer project
.form-holder
...
...
@@ -121,6 +121,8 @@
%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
.tab-pane
#tab-remove
-
if
can?
(
current_user
,
:remove_project
,
@project
)
...
...
@@ -133,3 +135,5 @@
%strong
Removed project can not be restored!
=
link_to
'Remove project'
,
@project
,
confirm:
'Removed project can not be restored! Are you sure?'
,
method: :delete
,
class:
"btn btn-remove btn-small"
-
else
%p
.nothing_here_message
Only project owner can remove a project
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