-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
478 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<input type="hidden" name="count" value="{$count}"> | ||
<input type="hidden" name="pagesCount" value="{$pagesCount}"> | ||
<input type="hidden" name="page" value="{$page}"> | ||
|
||
{foreach $docs as $doc} | ||
<div class='display_flex_row _content' data-attachmentdata="{$doc->getVirtualId()}_{$doc->getId()}_{$doc->getAccessKey()}" data-name='{$doc->getName()}'> | ||
{include "components/doc.xml", doc => $doc, hideButtons => true} | ||
</div> | ||
{/foreach} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{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 body} | ||
{var $is_gallery = $current_tab == 3 || $current_tab == 4} | ||
<div id="docs_page_wrapper"> | ||
<div class="docs_page_search"> | ||
<form action="/search" method="get" style="margin: 11px 0px;"> | ||
<input type="hidden" name="section" value="docs"> | ||
<input type="search" name="q" class="input_with_search_icon" placeholder="{_search_by_documents}"> | ||
</form> | ||
<a n:if="$canUpload" href="/docs/upload{if isset($group)}?gid={$group->getId()}{/if}"><input id="upload_entry_point" class="button" type="button" value="{_upload_button}"></a> | ||
</div> | ||
<div n:if="sizeof($tabs) > 1" class="docs_page_tabs" style="padding: 15px 10px;"> | ||
<div class="mb_tabs"> | ||
<div class="tab" n:attr="id => $current_tab == 0 ? activetabs"> | ||
<a href="?tab=0">{_document_type_0}</a> | ||
</div> | ||
<div n:foreach="$tabs as $tab" class="tab" n:attr="id => $tab['type'] == $current_tab ? activetabs"> | ||
<a href="?tab={$tab['type']}" n:attr="id => $tab['type'] == $current_tab ? act_tab_a"> | ||
{$tab["name"]} | ||
<span n:if="$tab['count'] > 1" class="special_counter">{$tab["count"]}</span> | ||
</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" style="padding: 7px 11px;"> | ||
<b class="summary">{tr($locale_string, $count)}.</b> | ||
</div> | ||
<div n:attr="id => !$is_gallery && sizeof($tags) > 0 ? search_page"> | ||
<div n:class="container_white, scroll_container, !$is_gallery && sizeof($tags) > 0 ? page_wrap_content_main"> | ||
{if $count > 0} | ||
{foreach $docs as $doc} | ||
{if $is_gallery} | ||
{include "components/image.xml", doc => $doc, scroll_context => true, club => isset($group) ? $group : NULL} | ||
{else} | ||
{include "components/doc.xml", doc => $doc, scroll_context => true, club => isset($group) ? $group : NULL} | ||
{/if} | ||
{/foreach} | ||
{else} | ||
{include "../components/error.xml", description => tr("there_is_no_documents_alright")} | ||
{/if} | ||
</div> | ||
</div> | ||
{include "../components/paginator.xml", conf => $paginatorConf} | ||
</div> | ||
</div> | ||
{/block} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{extends "../@layout.xml"} | ||
|
||
{block title} | ||
{_document} "{ovk_proc_strtr($doc->getName(), 20)}" | ||
{/block} | ||
|
||
{block header} | ||
{$doc->getName()} | ||
{/block} | ||
|
||
{block body} | ||
<div class='media-page-wrapper photo-page-wrapper'> | ||
<div class='photo-page-wrapper-photo'> | ||
{if $is_image} | ||
<img alt="doc image" src="{$doc->getURL()}" /> | ||
{else} | ||
<a href="{$doc->getURL()}" download="{downloadable_name($doc->getName())}"> | ||
<input class="button" type="button" value="{_download_file}"> | ||
</a> | ||
{/if} | ||
</div> | ||
|
||
<div class='ovk-photo-details'> | ||
<div class='media-page-wrapper-description' style="padding: 10px 20px;"> | ||
<p n:if='sizeof($tags) > 0'> | ||
{foreach $tags as $tag} | ||
<a href="/search?section=docs&tags={urlencode($tag)}"> | ||
{$tag}{if $tag != $tags[sizeof($tags) - 1]},{/if} | ||
</a> | ||
{/foreach} | ||
</p> | ||
<div class='upload_time'> | ||
{_info_upload_date}: {$doc->getPublicationTime()} | ||
</div> | ||
</div> | ||
|
||
<hr/> | ||
|
||
<div class="media-page-wrapper-details"> | ||
<div class='media-page-wrapper-comments'></div> | ||
<div class='media-page-wrapper-actions docMainItem' data-context="page" data-id="{$doc->getPrettiestId()}"> | ||
{if !$doc->isOwnerHidden()} | ||
{var $owner = $doc->getOwner()} | ||
<a href="{$owner->getURL()}" class='media-page-author-block'> | ||
<img class='cCompactAvatars' src="{$owner->getAvatarURL('miniscule')}"> | ||
|
||
<div class='media-page-author-block-name'> | ||
<b>{$owner->getCanonicalName()}</b> | ||
</div> | ||
</a> | ||
{/if} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{/block} |
Oops, something went wrong.