Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
86049fd6
Commit
86049fd6
authored
Mar 16, 2017
by
LE GAC Renaud
Browse files
Update the controller metric2d.
parent
9b0a8ba0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
controllers/plugin_event.py
controllers/plugin_event.py
+9
-4
No files found.
controllers/plugin_event.py
View file @
86049fd6
...
...
@@ -58,11 +58,16 @@ def metric2d():
store
=
report
.
get_store_configuration
()
grid
=
report
.
get_grid_configuration
()
img
=
graph
.
to_svg
()
img
=
urllib
.
quote
(
img
)
if
graph
.
ax
is
not
None
:
img
=
graph
.
to_svg
()
img
=
urllib
.
quote
(
img
)
response
.
view
=
"plugin_event/grid_and_graph.html"
return
dict
(
cfg_store
=
store
,
grid
=
grid
,
img
=
img
,
title
=
title
)
response
.
view
=
"plugin_event/grid_and_graph.html"
return
dict
(
cfg_store
=
store
,
grid
=
grid
,
img
=
img
,
title
=
title
)
else
:
response
.
view
=
"plugin_event/grid.html"
return
dict
(
cfg_store
=
store
,
grid
=
grid
,
title
=
title
)
elif
extension
==
"pdf"
:
data
=
graph
.
to_pdf
()
...
...
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