summaryrefslogtreecommitdiff
path: root/app/views/builds/show.html.haml
diff options
context:
space:
mode:
authorKestred <kestred@riotcave.com>2014-08-23 22:27:52 -0700
committerKestred <kestred@riotcave.com>2014-08-23 22:27:52 -0700
commit18f954b31c242822b6c7430a50ca99a93adc6ea6 (patch)
treeb7ee4acac738d5b64b6fcfaf909756f784dd2d61 /app/views/builds/show.html.haml
parent2eb3d91e1a6e51d3ca0be2fe0a5df750708b366d (diff)
downloadgitlab-ci-18f954b31c242822b6c7430a50ca99a93adc6ea6.tar.gz
Separate Commit model and logic from Build model|etc...
This is an entirely non-user facing change which prepares GitLab CI for future support of Parallel Builds. See https://about.gitlab.com/2013/12/19/gitlab-ci-with-parallel-builds-and-deployments/. These changes specifically avoid changing the supported API or changing any of the website views. Changes to the website views will come in tandem with future features like "Multiple build scripts". The supported API won't change as part of any future changes on this vein, to maintain support for the unofficial GitLab CI runners. This closes the following implementation step: 1. A commit has many builds Signed-off-by: Kestred <kestred@riotcave.com>
Diffstat (limited to 'app/views/builds/show.html.haml')
-rw-r--r--app/views/builds/show.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/builds/show.html.haml b/app/views/builds/show.html.haml
index 85b37a0..f7e1182 100644
--- a/app/views/builds/show.html.haml
+++ b/app/views/builds/show.html.haml
@@ -76,7 +76,7 @@
.pull-right
%small #{build_commit_link @build}
- - if @build.compare?
+ - if @build.commit.compare?
%p
%span.attr-name Compare:
#{build_compare_link @build}
@@ -85,10 +85,10 @@
#{build_ref_link @build}
%p
%span.attr-name Author:
- #{@build.git_author_name}
+ #{@build.commit.git_author_name}
%p
%span.attr-name Message:
- #{@build.git_commit_message}
+ #{@build.commit.git_commit_message}
- if @builds.present?
.build-widget