summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-01 13:03:14 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-06 19:56:34 +0200
commitb7fa7c4d59b2fbdc49db81aa2d6a2531c931a2fe (patch)
tree01b4f5e2aa9231049caa56196f09b4b8a6ebd406 /app/views
parent88fc7ccddaab18435bdc85021d06d9aa21d28a68 (diff)
downloadgitlab-ce-b7fa7c4d59b2fbdc49db81aa2d6a2531c931a2fe.tar.gz
Extend build status badge, add html/markdown methods
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/badges/index.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/badges/index.html.haml b/app/views/projects/badges/index.html.haml
index b527df8ac98..87c525cc1cb 100644
--- a/app/views/projects/badges/index.html.haml
+++ b/app/views/projects/badges/index.html.haml
@@ -4,12 +4,12 @@
.panel.panel-default
.panel-heading
%b Builds badge &middot;
- = image_tag(build_namespace_project_badges_path(@project.namespace, @project, :master, format: :svg), alt: 'Builds badge')
+ = @badge.to_html
.panel-body
%table.table
%tr
%td Markdown
- %td= markdown("```markdown\n[![build status](url)](link)\n```")
+ %td= markdown("```markdown\n#{@badge.to_markdown}\n```")
%tr
%td HTML
- %td= markdown("```html\n<a href='link'><img src='url' /></a>\n```")
+ %td= markdown("```html\n#{@badge.to_html}\n```")