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
1bf58b5c
Commit
1bf58b5c
authored
Sep 26, 2016
by
Patricio Cano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show a flash message in the project's main view when it's repo is over the limit.
parent
e62ded86
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
app/views/projects/_over_limit_message.html.haml
app/views/projects/_over_limit_message.html.haml
+2
-0
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+3
-0
lib/gitlab/repository_size_error.rb
lib/gitlab/repository_size_error.rb
+4
-0
No files found.
app/views/projects/_over_limit_message.html.haml
0 → 100644
View file @
1bf58b5c
.alert.alert-warning.hidden-xs
=
Gitlab
::
RepositorySizeError
.
new
(
@project
).
flash_message
\ No newline at end of file
app/views/projects/show.html.haml
View file @
1bf58b5c
...
@@ -9,6 +9,9 @@
...
@@ -9,6 +9,9 @@
=
render
'shared/no_ssh'
=
render
'shared/no_ssh'
=
render
'shared/no_password'
=
render
'shared/no_password'
-
if
@project
.
above_size_limit?
=
render
'over_limit_message'
=
render
'projects/last_push'
=
render
'projects/last_push'
=
render
"home_panel"
=
render
"home_panel"
...
...
lib/gitlab/repository_size_error.rb
View file @
1bf58b5c
...
@@ -32,6 +32,10 @@ module Gitlab
...
@@ -32,6 +32,10 @@ module Gitlab
'Please contact your GitLab administrator for more information.'
'Please contact your GitLab administrator for more information.'
end
end
def
flash_message
"
#{
to_s
}
You won't be able to push new code to this project.
#{
more_info_message
}
"
end
private
private
def
base_message
def
base_message
...
...
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