mirror of
https://github.com/openvk/openvk
synced 2025-01-23 08:09:23 +03:00
68 lines
2.7 KiB
XML
68 lines
2.7 KiB
XML
{extends "../@layout.xml"}
|
|
|
|
{block title}
|
|
{if !isset($group)}
|
|
{_my_documents_objectively}
|
|
{else}
|
|
{_documents_of_group}
|
|
{/if}
|
|
{/block}
|
|
|
|
{block header}
|
|
{if !isset($group)}
|
|
{_my_documents}
|
|
{else}
|
|
<a href="{$group->getURL()}">{$group->getCanonicalName()}</a> »
|
|
{_my_documents}
|
|
{/if}
|
|
{/block}
|
|
|
|
{block content}
|
|
{var $is_gallery = $current_tab == 3 || $current_tab == 4}
|
|
<div id="docs_page_wrapper">
|
|
<div class="docs_page_search">
|
|
<form action="/search" method="get">
|
|
<input type="hidden" name="section" value="docs">
|
|
<input type="search" name="q" class="input_with_search_icon" placeholder="{_search_by_documents}">
|
|
</form>
|
|
<input n:if="$canUpload" id="upload_entry_point" class="button" type="button" value="{_upload_button}" {if isset($group)}data-gid="{$group->getId()}"{/if}>
|
|
</div>
|
|
<div class="docs_page_tabs">
|
|
<div class="mb_tabs">
|
|
<div class="mb_tab" n:attr="id => $current_tab == 0 ? active">
|
|
<a href="?tab=0">{_document_type_0}</a>
|
|
</div>
|
|
<div n:foreach="$tabs as $tab" class="mb_tab" n:attr="id => $tab['type'] == $current_tab ? active">
|
|
<a href="?tab={$tab['type']}">{$tab["name"]}</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div n:class="docs_page_content, $is_gallery ? docs_page_gallery">
|
|
<div class="summaryBar display_flex_row display_flex_space_between">
|
|
<div class="summary">{tr($locale_string, $count)}.</div>
|
|
|
|
<select name="docs_sort">
|
|
<option n:attr="selected => $order == 0" value="0">{_documents_sort_add}</option>
|
|
<option n:attr="selected => $order == 1" value="1">{_documents_sort_alphabet}</option>
|
|
<option n:attr="selected => $order == 2" value="2">{_documents_sort_size}</option>
|
|
</select>
|
|
</div>
|
|
<div class="container_white scroll_container">
|
|
{if $count > 0}
|
|
{foreach $docs as $doc}
|
|
{if $is_gallery}
|
|
{include "components/image.xml", doc => $doc, scroll_context => true}
|
|
{else}
|
|
{include "components/doc.xml", doc => $doc, scroll_context => true}
|
|
{/if}
|
|
{/foreach}
|
|
{else}
|
|
{include "../components/error.xml", description => tr("there_is_no_documents_alright")}
|
|
{/if}
|
|
</div>
|
|
|
|
{include "../components/paginator.xml", conf => $paginatorConf}
|
|
|
|
</div>
|
|
</div>
|
|
{/block}
|