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
0168a240
Commit
0168a240
authored
Aug 08, 2016
by
Lin Jen-Shin
Committed by
James Edwards-Jones
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only show the message if user is not the owner
Closes #323
parent
caedc996
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
app/views/projects/pages/_destroy.haml
app/views/projects/pages/_destroy.haml
+10
-9
No files found.
app/views/projects/pages/_destroy.haml
View file @
0168a240
-
if
can?
(
current_user
,
:remove_pages
,
@project
)
&&
@project
.
pages_deployed?
-
if
can?
(
current_user
,
:remove_pages
,
@project
)
-
if
@project
.
pages_deployed?
.panel.panel-default.panel.panel-danger
.panel.panel-default.panel.panel-danger
.panel-heading
Remove pages
.panel-heading
Remove pages
.errors-holder
.errors-holder
...
...
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