1
0
Fork 0

feat: Added SVG as output format and made it default in dashboard

This commit is contained in:
Benedikt Bastin 2021-03-23 12:14:50 +01:00
parent 6ee0666039
commit 093ee5f073
2 changed files with 10 additions and 9 deletions

View file

@ -175,16 +175,16 @@
<h1>Plots</h1>
{% for fig in figures %}
<figure>
<a href="{{ fig['filename'] }}.png">
<img
src="{{ fig['filename'] }}.png"
alt="{{ fig['caption'] }}" />
</a>
<picture>
<source srcset="{{ fig['filename']}}.svg" alt="{{ fig['caption']}}" />
<img src="{{ fig['filename'] }}.png" alt="{{ fig['caption'] }}" />
</picture>
<figcaption>
<a name="figure-{{ '{:03d}'.format(fig['index']) }}"><span class="ref">Abbildung {{ fig['index'] }}:</span></a>
{{ fig['caption'] }}<br />
<a href="{{ fig['filename'] }}.png" download="{{ fig['filename'] }}.png">Download als PNG</a>
<a href="{{ fig['filename'] }}.pdf" download="{{ fig['filename'] }}.pdf">Download als PDF</a>
<a href="{{ fig['filename'] }}.svg" download="{{ fig['filename'] }}.pdf">Download als SVG</a>
</figcaption>
</figure>
{% endfor %}