Commit 1bf58b5c authored by Patricio Cano's avatar Patricio Cano

Show a flash message in the project's main view when it's repo is over the limit.

parent e62ded86
.alert.alert-warning.hidden-xs
= Gitlab::RepositorySizeError.new(@project).flash_message
\ No newline at end of file
...@@ -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"
......
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment