Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
42c035ee
Commit
42c035ee
authored
Jul 28, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add badge template to generic badge view template
parent
33e14285
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
app/views/projects/badges/badge.svg.erb
app/views/projects/badges/badge.svg.erb
+9
-9
No files found.
app/views/projects/badges/badge.svg.erb
View file @
42c035ee
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"
91
"
height=
"20"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"
<%=
badge
.
width
%>
"
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"
/>
<rect
width=
"
<%=
badge
.
width
%>
"
height=
"20"
rx=
"3"
fill=
"#fff"
/>
</mask>
<g
mask=
"url(#a)"
>
<path
fill=
"
#555"
d=
"M0 0h37v20H
0z"
/>
<path
fill=
"#4c1"
d=
"M
37 0h54v20H37
z"
/>
<path
fill=
"url(#b)"
d=
"M0 0h
91v20H
0z"
/>
<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"
/>
</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>
<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>
</g>
</g>
</svg>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment