summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-12-11 13:25:42 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2015-12-11 18:02:09 +0100
commit2b7a75ceaf96830e482fc5c59460fe2dd6ff0a28 (patch)
tree79dae65e3674ee00be8f82573a3c62760f15d484
parent1e2a4895c803f4881ab63c1816141462fbfa6d2b (diff)
downloadgitlab-ce-2b7a75ceaf96830e482fc5c59460fe2dd6ff0a28.tar.gz
Update badge
-rw-r--r--app/helpers/ci_badge_helper.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/helpers/ci_badge_helper.rb b/app/helpers/ci_badge_helper.rb
index a81edbcb416..27386133e36 100644
--- a/app/helpers/ci_badge_helper.rb
+++ b/app/helpers/ci_badge_helper.rb
@@ -1,11 +1,13 @@
module CiBadgeHelper
def markdown_badge_code(project, ref)
url = status_ci_project_url(project, ref: ref, format: 'png')
- "[![build status](#{url})](#{ci_project_url(project, ref: ref)})"
+ link = namespace_project_commits_path(project.namespace, project, ref)
+ "[![build status](#{url})](#{link})"
end
def html_badge_code(project, ref)
url = status_ci_project_url(project, ref: ref, format: 'png')
- "<a href='#{ci_project_url(project, ref: ref)}'><img src='#{url}' /></a>"
+ link = namespace_project_commits_path(project.namespace, project, ref)
+ "<a href='#{link}'><img src='#{url}' /></a>"
end
end