Skip to content

Commit

Permalink
Merge pull request #5 from collective/pdfview
Browse files Browse the repository at this point in the history
refs #73106 pdfview branch merged to master
  • Loading branch information
ekulos authored Jul 25, 2016
2 parents 6794d40 + cc4c052 commit e48512c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eea/app/visualization/browser/css/view.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Thumbnail
*/

@media screen {
.daviz-views {
float: left;
width: 80%;
Expand Down Expand Up @@ -107,3 +107,4 @@ ul.chart-tabs span {
padding: 1em;
font-weight: bold;
}
}
11 changes: 11 additions & 0 deletions eea/app/visualization/browser/zpt/view.pt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
<tal:headers repeat="header view/headers">
<tal:header replace="structure header" />
</tal:headers>
<script type="text/javascript"
tal:define="
isPrint python:1 if ('pdf.' in request['URL0']) else 0;"
tal:content="structure string:
var EEAGoogleCharts = window.EEAGoogleCharts || {};
if (!EEAGoogleCharts.embed){
window.EEAGoogleCharts.embed = {};
}
window.EEAGoogleCharts.embed.isPrint = ${isPrint};
">
</script>
</metal:jsslot>

<body>
Expand Down

0 comments on commit e48512c

Please sign in to comment.