diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-27 13:08:43 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-28 12:01:12 +0200 |
commit | 33e14285d3dc0c2340ca34ede7235644a418cea6 (patch) | |
tree | 2c1edca199b85afd89fb790c4f25383c49089e83 /app | |
parent | f4804d5bb4b37f4de80e4a2e248f0958c615b618 (diff) | |
download | gitlab-ce-33e14285d3dc0c2340ca34ede7235644a418cea6.tar.gz |
Add generic SVG badge template
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/badges/badge.svg.erb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app/views/projects/badges/badge.svg.erb b/app/views/projects/badges/badge.svg.erb new file mode 100644 index 00000000000..72f341176e3 --- /dev/null +++ b/app/views/projects/badges/badge.svg.erb @@ -0,0 +1,25 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="91" height="20"> + <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"> + <rect width="91" height="20" rx="3" fill="#fff"/> + </mask> + + <g mask="url(#a)"> + <path fill="#555" d="M0 0h37v20H0z"/> + <path fill="#4c1" d="M37 0h54v20H37z"/> + <path fill="url(#b)" d="M0 0h91v20H0z"/> + </g> + + <g fill="#fff" text-anchor="middle"> + <g font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"> + <text x="18" y="15" fill="#010101" fill-opacity=".3">build</text> + <text x="18" y="14">build</text> + <text x="63" y="15" fill="#010101" fill-opacity=".3">success</text> + <text x="63" y="14">success</text> + </g> + </g> +</svg> |