2024-12-29 19:26:47 +03:00
|
|
|
{var $preview = $doc->hasPreview() ? $doc->getPreview() : NULL}
|
2024-12-29 23:16:21 +03:00
|
|
|
{var $copied = !isset($club) ? $doc->isCopiedBy($thisUser) : $doc->isCopiedBy($club)}
|
2024-12-29 19:26:47 +03:00
|
|
|
{var $modifiable = $doc->canBeModifiedBy($thisUser)}
|
|
|
|
|
|
|
|
<a href="/doc{$doc->getPrettyId()}" n:class="docMainItem, viewerOpener, docGalleryItem, $scroll_context ? scroll_node" data-id="{$doc->getPrettiestId()}">
|
|
|
|
<img loading="lazy" src="{$preview->getURLBySizeId('medium')}" alt="gallery photo">
|
|
|
|
|
|
|
|
<div class="doc_top_panel doc_shown_by_hover">
|
2024-12-29 23:16:21 +03:00
|
|
|
<div class="doc_volume_action" n:if="!$modifiable" id="report_icon"></div>
|
|
|
|
<div class="doc_volume_action" n:if="$modifiable" id="edit_icon"></div>
|
|
|
|
<div class="doc_volume_action" n:if="!$copied || $copied && $copyImportance" id="add_icon"></div>
|
|
|
|
<div class="doc_volume_action" n:if="$copied && !$copyImportance" id="remove_icon"></div>
|
2024-12-29 19:26:47 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="doc_bottom_panel doc_shown_by_hover doc_content">
|
|
|
|
<span class="doc_bottom_panel_name noOverflow doc_name">{$doc->getName()}</span>
|
|
|
|
<span class="doc_bottom_panel_size">{readable_filesize($doc->getFilesize())}</span>
|
|
|
|
</div>
|
|
|
|
</a>
|