Commit 3f4e9e38 authored by Mike Greiling's avatar Mike Greiling

move build page warning to a template partial to avoid conflicts

parent ecb89438
- if project.namespace.shared_runners_minutes_used?
- quota_used = project.namespace.shared_runners_minutes
- quota_limit = project.namespace.actual_shared_runners_minutes_limit
.bs-callout.bs-callout-warning
%p
You have used all your shared runner minutes
= "(#{quota_used} of #{quota_limit})."
%br
For more information, go to the
= succeed "." do
= link_to namespace_project_runners_path(project.namespace, project) do
runners page
...@@ -26,18 +26,7 @@ ...@@ -26,18 +26,7 @@
= link_to namespace_project_runners_path(@build.project.namespace, @build.project) do = link_to namespace_project_runners_path(@build.project.namespace, @build.project) do
Runners page Runners page
- if @build.project.namespace.shared_runners_minutes_used? = render "shared_runner_limit_warning", project: @build.project
- quota_used = @build.project.namespace.shared_runners_minutes
- quota_limit = @build.project.namespace.actual_shared_runners_minutes_limit
.bs-callout.bs-callout-warning
%p
You have used all your shared runner minutes
= "(#{quota_used} of #{quota_limit})."
%br
For more information, go to the
= succeed "." do
= link_to namespace_project_runners_path(@build.project.namespace, @build.project) do
runners page
- if @build.starts_environment? - if @build.starts_environment?
.prepend-top-default .prepend-top-default
......
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