summaryrefslogtreecommitdiff
path: root/app/helpers/builds_helper.rb
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2016-09-08 16:50:36 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2016-11-04 15:07:51 +0000
commitac7efb29164e0f30e88be713c07672df3f54e3e6 (patch)
tree0a94f2e67a31caa01448bcb4a4e1fcd0130f9bab /app/helpers/builds_helper.rb
parent5368b9f249485e254a90fe7daa551d61412bee26 (diff)
downloadgitlab-ce-ac7efb29164e0f30e88be713c07672df3f54e3e6.tar.gz
Removed inline JS and added new affix declaration
Tidied up UX Corrected naming convention issues with removing inline JS @deckar01 saves the day! Simplified `toggleSidebar` and `hideSidebar` Review changes Merge conflicts and update autoscroll button
Diffstat (limited to 'app/helpers/builds_helper.rb')
-rw-r--r--app/helpers/builds_helper.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/builds_helper.rb b/app/helpers/builds_helper.rb
index f3aaff9140d..fde297c588e 100644
--- a/app/helpers/builds_helper.rb
+++ b/app/helpers/builds_helper.rb
@@ -5,4 +5,14 @@ module BuildsHelper
build_class += ' retried' if build.retried?
build_class
end
+
+ def javascript_build_options
+ {
+ page_url: namespace_project_build_url(@project.namespace, @project, @build),
+ build_url: namespace_project_build_url(@project.namespace, @project, @build, :json),
+ build_status: @build.status,
+ build_stage: @build.stage,
+ state1: @build.trace_with_state[:state]
+ }
+ end
end