Notes: Update layot

This commit is contained in:
KosFurler 2022-01-25 23:52:23 +03:00
parent 43ebb2c8ad
commit 287b2a29aa
2 changed files with 15 additions and 11 deletions

View file

@ -51,16 +51,19 @@
</div> </div>
</article> </article>
<div class="note_footer"> <div class="note_footer" style="margin: 10px 10px 0;">
<div class="comments_count">Комментарии ({$note->getCommentsCount()}) <div class="comments_count">
{if sizeof($comments) > 0}
Комментарии ({$note->getCommentsCount()})
{else}
Нет комментариев
{/if}
<span n:if="isset($thisUser) && $thisUser->getId() === $note->getOwner()->getId()">&nbsp;|&nbsp; <span n:if="isset($thisUser) && $thisUser->getId() === $note->getOwner()->getId()">&nbsp;|&nbsp;
<a id="_noteDelete" href="/note{$note->getOwner()->getId()}_{$note->getId()}/delete">удалить</a> <a id="_noteDelete" href="/note{$note->getOwner()->getId()}_{$note->getId()}/delete">удалить</a>
</span> </span>
</div> </div>
</div> </div>
<div style="margin: 6px 10px 10px;border-top: 1px solid #ddd;">
<div style="width: 100%; min-height: 100px;">
<div style="float: left; min-height: 100px; width: 70%;">
{include "../components/comments.xml", {include "../components/comments.xml",
comments => $comments, comments => $comments,
count => $cCount, count => $cCount,
@ -68,5 +71,4 @@
model => "notes", model => "notes",
parent => $note} parent => $note}
</div> </div>
</div>
{/block} {/block}

View file

@ -1820,12 +1820,14 @@ body.scrolled .toTop:hover {
margin: 0; margin: 0;
padding: 0 0 1px 0; padding: 0 0 1px 0;
} }
.note_footer { .note_footer {
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
clear: both; clear: both;
margin-top: 10px; margin-top: 10px;
padding: 0px 2px 0px 6px; padding: 0px 2px 0px 6px;
} }
.comments_count { .comments_count {
padding: 5px 0px 0px 0px; padding: 5px 0px 0px 0px;
} }