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
a22d699d
Commit
a22d699d
authored
May 04, 2017
by
Timothy Andrew
Committed by
Tiago Botelho
Jul 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: Display a project's `delete_error` on the project homepage.
parent
7b60bf90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
app/views/projects/_deletion_failed.html.haml
app/views/projects/_deletion_failed.html.haml
+9
-0
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+1
-0
No files found.
app/views/projects/_deletion_failed.html.haml
0 → 100644
View file @
a22d699d
-
if
@project
.
delete_error
.
present?
.project-deletion-failed-message.alert.alert-warning
This project was scheduled for deletion, but failed with the message:
=
@project
.
delete_error
.alert-link-group
=
link_to
"Don't show again"
,
profile_path
(
user:
{
hide_no_ssh_key:
true
}),
method: :put
,
class:
'alert-link'
|
=
link_to
'Remind later'
,
'#'
,
class:
'hide-no-ssh-message alert-link'
app/views/projects/show.html.haml
View file @
a22d699d
...
...
@@ -7,6 +7,7 @@
=
auto_discovery_link_tag
(
:atom
,
project_path
(
@project
,
rss_url_options
),
title:
"
#{
@project
.
name
}
activity"
)
=
content_for
flash_message_container
do
=
render
'deletion_failed'
-
if
current_user
&&
can?
(
current_user
,
:download_code
,
@project
)
=
render
'shared/no_ssh'
=
render
'shared/no_password'
...
...
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