Commit 89f2be7d authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve indentation in svg badge template

parent bc179962
...@@ -9,17 +9,28 @@ ...@@ -9,17 +9,28 @@
</mask> </mask>
<g mask="url(#a)"> <g mask="url(#a)">
<path fill="<%= badge.key_color%>" d="M0 0h <%= badge.key_width%>v 20H 0z"/> <path fill="<%= badge.key_color %>"
<path fill="<%= badge.value_color %>" d="M<%= badge.key_width%> 0h <%= badge.value_width %>v 20H <%= badge.key_width%>z"/> d="M0 0 h<%= badge.key_width %> v20 H0 z"/>
<path fill="url(#b)" d="M0 0h <%= badge.width %>v 20H 0z"/> <path fill="<%= badge.value_color %>"
d="M<%= badge.key_width%> 0 h<%= badge.value_width %> v20 H<%= badge.key_width %> z"/>
<path fill="url(#b)"
d="M0 0 h<%= badge.width %> v20 H0 z"/>
</g> </g>
<g fill="#fff" text-anchor="middle"> <g fill="#fff" text-anchor="middle">
<g font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"> <g font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="<%= badge.key_text_anchor %>" y="15" fill="#010101" fill-opacity=".3"><%= badge.key_text %></text> <text x="<%= badge.key_text_anchor %>" y="15" fill="#010101" fill-opacity=".3">
<text x="<%= badge.key_text_anchor %>" y="14"><%= badge.key_text %></text> <%= badge.key_text %>
<text x="<%= badge.value_text_anchor %>" y="15" fill="#010101" fill-opacity=".3"><%= badge.value_text %></text> </text>
<text x="<%= badge.value_text_anchor %>" y="14"><%= badge.value_text %></text> <text x="<%= badge.key_text_anchor %>" y="14">
<%= badge.key_text %>
</text>
<text x="<%= badge.value_text_anchor %>" y="15" fill="#010101" fill-opacity=".3">
<%= badge.value_text %>
</text>
<text x="<%= badge.value_text_anchor %>" y="14">
<%= badge.value_text %>
</text>
</g> </g>
</g> </g>
</svg> </svg>
...@@ -2,7 +2,7 @@ module Gitlab ...@@ -2,7 +2,7 @@ module Gitlab
module Badge module Badge
class Build class Build
## ##
# Abstract class for build badge template. # Class that represents a build badge template.
# #
# Template object will be passed to badge.svg.erb template. # Template object will be passed to badge.svg.erb template.
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment