2020-06-07 19:04:43 +03:00
|
|
|
{extends "../@layout.xml"}
|
|
|
|
|
|
|
|
{block title}{$note->getName()}{/block}
|
|
|
|
|
|
|
|
{block header}
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $author = $note->getOwner()}
|
2020-06-07 19:04:43 +03:00
|
|
|
<a href="{$author->getURL()}">{$author->getCanonicalName()}</a>
|
|
|
|
»
|
|
|
|
<a href="/notes{$author->getId()}">{_notes}</a>
|
|
|
|
»
|
|
|
|
{$note->getName()}
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block content}
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $author = $note->getOwner()}
|
2020-06-07 19:04:43 +03:00
|
|
|
<style>
|
|
|
|
#userContent img {
|
|
|
|
max-width: 245pt;
|
|
|
|
max-height: 200pt;
|
|
|
|
}
|
2022-01-26 14:57:34 +03:00
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
#userContent blockquote {
|
|
|
|
background-color: #f3f3f3;
|
|
|
|
border-bottom: 5px solid #969696;
|
|
|
|
padding: 1;
|
|
|
|
}
|
2022-01-26 14:57:34 +03:00
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
#userContent cite {
|
|
|
|
margin-top: 1em;
|
|
|
|
display: block;
|
|
|
|
}
|
2022-01-26 14:57:34 +03:00
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
#userContent cite::before {
|
|
|
|
content: "— ";
|
|
|
|
}
|
2022-03-23 16:43:17 +03:00
|
|
|
|
|
|
|
#userContent .underline {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2020-06-07 19:04:43 +03:00
|
|
|
</style>
|
2022-01-26 14:57:34 +03:00
|
|
|
|
2022-01-25 22:26:19 +03:00
|
|
|
<article id="userContent" style="margin: 10px 10px 0;">
|
2022-01-26 14:57:34 +03:00
|
|
|
<div class="note_header">
|
|
|
|
<div class="note_title">
|
|
|
|
<div class="note_title">
|
|
|
|
<a>{$note->getName()}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="byline">
|
|
|
|
<span><a href="{$author->getURL()}">{$author->getCanonicalName()}</a></span> {$note->getPublicationTime()}
|
2022-01-26 18:20:10 +03:00
|
|
|
<span n:if="$note->getEditTime() > $note->getPublicationTime()">({_edited} {$note->getEditTime()})</span>
|
2022-01-26 14:57:34 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="margin-left: 6px; width: 535px;">
|
|
|
|
{$note->getText()|noescape}
|
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
</article>
|
2022-01-26 14:57:34 +03:00
|
|
|
|
|
|
|
<div class="note_footer" style="margin: 10px 10px 0;">
|
|
|
|
<div class="comments_count">
|
|
|
|
{if sizeof($comments) > 0}
|
|
|
|
{_comments} ({$note->getCommentsCount()})
|
|
|
|
{else}
|
|
|
|
{_no_comments}
|
|
|
|
{/if}
|
|
|
|
<span n:if="isset($thisUser) && $thisUser->getId() === $note->getOwner()->getId()"> |
|
|
|
|
<a id="_noteDelete" href="/note{$note->getOwner()->getId()}_{$note->getId()}/delete">{_delete}</a>
|
2022-01-26 18:20:10 +03:00
|
|
|
|
|
|
|
|
<a href="/note{$note->getOwner()->getId()}_{$note->getVirtualId()}/edit">{_edit}</a>
|
2022-01-26 14:57:34 +03:00
|
|
|
</span>
|
|
|
|
</div>
|
2022-01-25 22:26:19 +03:00
|
|
|
</div>
|
2022-01-26 14:57:34 +03:00
|
|
|
<div style="margin: 6px 10px 10px;border-top: 1px solid #ddd;">
|
2020-06-07 19:04:43 +03:00
|
|
|
{include "../components/comments.xml",
|
2022-01-26 14:57:34 +03:00
|
|
|
comments => $comments,
|
|
|
|
count => $cCount,
|
|
|
|
page => $cPage,
|
|
|
|
model => "notes",
|
|
|
|
parent => $note,
|
|
|
|
showTitle => false}
|
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
{/block}
|