Skip to content

Commit

Permalink
feat(docs): add unavailable book preview (bc pos-
Browse files Browse the repository at this point in the history
-sible xss). uncomment if sure
  • Loading branch information
mrilyew committed Jan 27, 2025
1 parent 0fb18e3 commit b713c96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Web/Presenters/templates/Documents/Page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<img class="main_doc_block" alt="doc image" src="{$doc->getPreview()->getURLBySizeId('original')}" />
{elseif $doc->isAudio()}
<audio src="{$doc->getURL()}" controls></audio>
{*{elseif $doc->isBook()}
<iframe src="{$doc->getURL()}" frameborder="0"></iframe>*}
{else}
<a href="{$doc->getURL()}" download="{downloadable_name($doc->getName())}">
<input class="button" type="button" value="{_download_file}">
Expand Down

0 comments on commit b713c96

Please sign in to comment.