summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-31 15:05:35 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-31 15:05:35 +0200
commit70d6853efb4aa17f034f01bef1f4ba23ad519b09 (patch)
treee020367861ddcab2c29f6a7feafb0285dc5225b7 /app/helpers
parent61f766b5065b35648984244a75ad84e448db1798 (diff)
downloadgitlab-ci-70d6853efb4aa17f034f01bef1f4ba23ad519b09.tar.gz
Refactor build page logic
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/builds_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/builds_helper.rb b/app/helpers/builds_helper.rb
index e1f04dd..58952fd 100644
--- a/app/helpers/builds_helper.rb
+++ b/app/helpers/builds_helper.rb
@@ -22,6 +22,10 @@ module BuildsHelper
end
def build_link build
- link_to(build.short_sha, project_build_path(build.project, build))
+ link_to(build.short_sha, project_build_path(build.project, build, bid: build.id))
+ end
+
+ def build_url(build)
+ project_build_url(build.project, build, bid: build.id)
end
end