summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/ci/admin/builds/_build.html.haml2
-rw-r--r--app/views/ci/admin/builds/index.html.haml3
-rw-r--r--app/views/ci/admin/projects/index.html.haml2
3 files changed, 4 insertions, 3 deletions
diff --git a/app/views/ci/admin/builds/_build.html.haml b/app/views/ci/admin/builds/_build.html.haml
index 1766ca39760..47f8df8f98e 100644
--- a/app/views/ci/admin/builds/_build.html.haml
+++ b/app/views/ci/admin/builds/_build.html.haml
@@ -1,7 +1,7 @@
- if build.commit && build.project
%tr.build.alert{class: build_status_alert_class(build)}
%td.build-link
- = link_to ci_build_url(build) do
+ = link_to ci_project_build_url(build.project, build) do
%strong #{build.id}
%td.status
diff --git a/app/views/ci/admin/builds/index.html.haml b/app/views/ci/admin/builds/index.html.haml
index ab4ced54327..d23119162cc 100644
--- a/app/views/ci/admin/builds/index.html.haml
+++ b/app/views/ci/admin/builds/index.html.haml
@@ -22,6 +22,7 @@
%th Duration
%th Finished at
- = render @builds
+ - @builds.each do |build|
+ = render "ci/admin/builds/build", build: build
= paginate @builds
diff --git a/app/views/ci/admin/projects/index.html.haml b/app/views/ci/admin/projects/index.html.haml
index d6c0243880f..dc7b041473b 100644
--- a/app/views/ci/admin/projects/index.html.haml
+++ b/app/views/ci/admin/projects/index.html.haml
@@ -9,7 +9,7 @@
%th
- @projects.each do |project|
- = render "ci/admin/projects/project", project: @projects
+ = render "ci/admin/projects/project", project: project
= paginate @projects