summaryrefslogtreecommitdiff
path: root/app/views/projects/builds/show.html.haml
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-09 20:19:27 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-09 20:19:27 +0300
commit74520f23db51c95b4aea8856fb51c4246785f776 (patch)
treeae6411f58e16b60cba1d5da3c150f07d01852852 /app/views/projects/builds/show.html.haml
parentbaef6728fa4e8e515ccdeba1ea54da996f322aab (diff)
downloadgitlab-ce-74520f23db51c95b4aea8856fb51c4246785f776.tar.gz
Encode state as base64 string
Diffstat (limited to 'app/views/projects/builds/show.html.haml')
-rw-r--r--app/views/projects/builds/show.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/builds/show.html.haml b/app/views/projects/builds/show.html.haml
index 0da0477bdd0..c7b9c36a3ab 100644
--- a/app/views/projects/builds/show.html.haml
+++ b/app/views/projects/builds/show.html.haml
@@ -1,6 +1,6 @@
- page_title "#{@build.name} (##{@build.id})", "Builds"
= render "header_title"
-- trace = build.trace_for_state
+- trace_with_state = @build.trace_with_state
.build-page
.row-content-block.top-block
@@ -86,7 +86,7 @@
%pre.trace#build-trace
%code.bash
= preserve do
- = raw trace[:html]
+ = raw trace_with_state[:html]
- if @build.active?
%i{:class => "fa fa-refresh fa-spin"}
@@ -219,4 +219,4 @@
:javascript
- new CiBuild("#{namespace_project_build_url(@project.namespace, @project, @build)}", "#{@build.status}", "#{trace[:state]}")
+ new CiBuild("#{namespace_project_build_url(@project.namespace, @project, @build)}", "#{@build.status}", "#{trace_with_state[:state]}")