mirror of
https://github.com/openvk/openvk
synced 2025-01-31 20:15:32 +03:00
2d83003b6c
* create document entity * add upload, previews, most of api methods * ui start * better ui, search, uploading (icons by myslivets) Co-Authored-By: Daniel <60743585+myslivets@users.noreply.github.com> * add editing functions * add viewer and gallery * preparations for picker * things * add counter on tab * add tags * fix gif processing * fix png processing * picker * addd search * add fast uploader * openvk midn. support, change midn.photomodal color * fix low register format chekc * add gif play on click * unauthorized limitations --------- Co-authored-by: Daniel <60743585+myslivets@users.noreply.github.com>
37 lines
1.8 KiB
XML
37 lines
1.8 KiB
XML
{var $preview = $doc->hasPreview() ? $doc->getPreview() : NULL}
|
|
{var $tags = $doc->getTags()}
|
|
{var $copied = !isset($club) ? $doc->isCopiedBy($thisUser) : $doc->isCopiedBy($club)}
|
|
{var $modifiable = $doc->canBeModifiedBy($thisUser)}
|
|
|
|
<div n:class="docMainItem, docListViewItem, $scroll_context ? scroll_node" data-id="{$doc->getPrettiestId()}">
|
|
<a class="viewerOpener" href="/doc{$doc->getPrettyId()}?key={$doc->getAccessKey()}">
|
|
{if $preview}
|
|
<img class="doc_icon" alt="document_preview" src="{$preview->getURLBySizeId('tiny')}">
|
|
{else}
|
|
<div class="doc_icon no_image">
|
|
<span>{$doc->getFileExtension()}</span>
|
|
</div>
|
|
{/if}
|
|
</a>
|
|
<div class="doc_content noOverflow">
|
|
<a class="viewerOpener noOverflow" href="/doc{$doc->getPrettyId()}?key={$doc->getAccessKey()}"><b class="noOverflow doc_name">{$doc->getName()}</b></a>
|
|
|
|
<div class="doc_content_info">
|
|
<span>{$doc->getPublicationTime()}</span>,
|
|
<span>{readable_filesize($doc->getFilesize())}</span>{if sizeof($tags) > 0} -
|
|
<span n:if="!$noTags" class="doc_tags" style="text-wrap: wrap;">
|
|
{foreach $tags as $tag}
|
|
<a href="/search?section=docs&tags={urlencode($tag)}">
|
|
{$tag}{if $tag != $tags[sizeof($tags) - 1]},{/if}
|
|
</a>
|
|
{/foreach}
|
|
</span>{/if}
|
|
</div>
|
|
</div>
|
|
<div class="doc_volume" n:if="!$hideButtons && $thisUser">
|
|
<div n:if="!$modifiable" id="report_icon"></div>
|
|
<div n:if="$modifiable" id="edit_icon"></div>
|
|
<div n:if="!$copied || $copied && $copyImportance" id="add_icon"></div>
|
|
<div n:if="$copied && !$copyImportance" id="remove_icon"></div>
|
|
</div>
|
|
</div>
|