BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
89f2be7d
Commit
89f2be7d
authored
Aug 08, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve indentation in svg badge template
parent
bc179962
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
badge.svg.erb
app/views/projects/badges/badge.svg.erb
+18
-7
template.rb
lib/gitlab/badge/build/template.rb
+1
-1
No files found.
app/views/projects/badges/badge.svg.erb
View file @
89f2be7d
...
...
@@ -9,17 +9,28 @@
</mask>
<g
mask=
"url(#a)"
>
<path
fill=
"
<%=
badge
.
key_color
%>
"
d=
"M0 0h
<%=
badge
.
key_width
%>
v 20H 0z"
/>
<path
fill=
"
<%=
badge
.
value_color
%>
"
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"
/>
<path
fill=
"
<%=
badge
.
key_color
%>
"
d=
"M0 0 h
<%=
badge
.
key_width
%>
v20 H0 z"
/>
<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
fill=
"#fff"
text-anchor=
"middle"
>
<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=
"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>
<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>
lib/gitlab/badge/build/template.rb
View file @
89f2be7d
...
...
@@ -2,7 +2,7 @@ module Gitlab
module
Badge
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.
#
...
...
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