summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/layouts/nav/_project_settings.html.haml2
-rw-r--r--app/views/projects/builds/_build.html.haml4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/layouts/nav/_project_settings.html.haml b/app/views/layouts/nav/_project_settings.html.haml
index b12dcd84116..954dbe5d2b9 100644
--- a/app/views/layouts/nav/_project_settings.html.haml
+++ b/app/views/layouts/nav/_project_settings.html.haml
@@ -66,7 +66,7 @@
%span
CI Services
= nav_link path: 'events#index' do
- = link_to ci_project_events_path(@project.ensure_gitlab_ci_project) do
+ = link_to ci_project_events_path(@project.gitlab_ci_project) do
= icon('book fw')
%span
CI Events
diff --git a/app/views/projects/builds/_build.html.haml b/app/views/projects/builds/_build.html.haml
index e74a3a62672..ff146f7389b 100644
--- a/app/views/projects/builds/_build.html.haml
+++ b/app/views/projects/builds/_build.html.haml
@@ -29,9 +29,9 @@
- build.tags.each do |tag|
%span.label.label-primary
= tag
- - if build.try(:trigger_request)
+ - if build.trigger_request
%span.label.label-info triggered
- - if build.try(:allow_failure)
+ - if build.allow_failure
%span.label.label-danger allowed to fail
%td.duration