Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
4a5d789d
Commit
4a5d789d
authored
Dec 19, 2016
by
Krophil
Browse files
partners banner added
parent
d400995e
Pipeline
#693
passed with stage
in 3 minutes and 6 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
core/static/core/img/partners.png
0 → 100644
View file @
4a5d789d
28.5 KB
counter/views.py
View file @
4a5d789d
...
...
@@ -1092,6 +1092,13 @@ class EticketPDFView(CanViewMixin, DetailView):
renderPDF
.
draw
(
d
,
p
,
10.5
*
cm
-
130
,
6.1
*
cm
)
p
.
drawCentredString
(
10.5
*
cm
,
6
*
cm
,
code
)
partners
=
ImageReader
(
"core/static/core/img/partners.png"
)
width
,
height
=
partners
.
getSize
()
size
=
max
(
width
,
height
)
width
=
width
*
2
/
3
height
=
height
*
2
/
3
p
.
drawImage
(
partners
,
0
*
cm
,
0
*
cm
,
width
,
height
)
p
.
showPage
()
p
.
save
()
return
response
...
...
Write
Preview
Supports
Markdown
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