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
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
app/views/projects/badges/badge.svg.erb
app/views/projects/badges/badge.svg.erb
+18
-7
lib/gitlab/badge/build/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