forked from lix-project/hydra
* Add an icon for PDFs.
This commit is contained in:
parent
301b67e3d3
commit
dda984cf16
2 changed files with 6 additions and 2 deletions
|
@ -146,11 +146,15 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
[% CASE "doc" %]
|
[% CASE ["doc", "doc-pdf"] %]
|
||||||
|
|
||||||
<li class="product">
|
<li class="product">
|
||||||
<a href="[% uri %]">
|
<a href="[% uri %]">
|
||||||
|
[% IF product.type == "doc-pdf" %]
|
||||||
|
<img src="/static/images/pdf.png" alt="PDF document" />
|
||||||
|
[% ELSE %]
|
||||||
<img src="/static/images/document.png" alt="Document" />
|
<img src="/static/images/document.png" alt="Document" />
|
||||||
|
[% END %]
|
||||||
[% SWITCH product.subtype %]
|
[% SWITCH product.subtype %]
|
||||||
[% CASE "readme" %]
|
[% CASE "readme" %]
|
||||||
“README” file
|
“README” file
|
||||||
|
|
BIN
src/root/static/images/pdf.png
Normal file
BIN
src/root/static/images/pdf.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
Loading…
Reference in a new issue