2016-07-28 11:50:50 +00:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="<%= badge.width %>" height="20">
|
2016-07-27 11:08:43 +00:00
|
|
|
<linearGradient id="b" x2="0" y2="100%">
|
|
|
|
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
|
|
|
|
<stop offset="1" stop-opacity=".1"/>
|
|
|
|
</linearGradient>
|
|
|
|
|
|
|
|
<mask id="a">
|
2016-07-28 11:50:50 +00:00
|
|
|
<rect width="<%= badge.width %>" height="20" rx="3" fill="#fff"/>
|
2016-07-27 11:08:43 +00:00
|
|
|
</mask>
|
|
|
|
|
|
|
|
<g mask="url(#a)">
|
2016-07-28 11:50:50 +00:00
|
|
|
<path fill="<%= badge.key_color%>" d="M0 0h <%= badge.key_width%>v 20H 0z"/>
|
|
|
|
<path fill="#4c1" d="M<%= badge.key_width%> 0h <%= badge.value_width %>v 20H <%= badge.key_width%>z"/>
|
|
|
|
<path fill="url(#b)" d="M0 0h <%= badge.width %>v 20H 0z"/>
|
2016-07-27 11:08:43 +00:00
|
|
|
</g>
|
|
|
|
|
|
|
|
<g fill="#fff" text-anchor="middle">
|
|
|
|
<g font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
2016-07-28 11:50:50 +00:00
|
|
|
<text x="<%= badge.key_text_anchor %>" y="15" fill="#010101" fill-opacity=".3"><%= badge.key_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>
|
2016-07-27 11:08:43 +00:00
|
|
|
</g>
|
|
|
|
</g>
|
|
|
|
</svg>
|