openvk/Web/Presenters/templates/Notes/View.xml

70 lines
2 KiB
XML
Raw Normal View History

2020-06-07 19:04:43 +03:00
{extends "../@layout.xml"}
{block title}{$note->getName()}{/block}
{block header}
{var author = $note->getOwner()}
<a href="{$author->getURL()}">{$author->getCanonicalName()}</a>
»
<a href="/notes{$author->getId()}">{_notes}</a>
»
{$note->getName()}
{/block}
{block content}
<style>
#userContent img {
max-width: 245pt;
max-height: 200pt;
}
#userContent blockquote {
background-color: #f3f3f3;
border-bottom: 5px solid #969696;
padding: 1;
}
#userContent cite {
margin-top: 1em;
display: block;
}
#userContent cite::before {
content: "— ";
}
</style>
2022-01-23 23:27:52 +03:00
<article id="userContent" style="min-height: 300pt;margin: 10px;">
<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()}
</div>
</div>
<div style="margin-left: 6px;">
2020-06-07 19:04:43 +03:00
{$note->getText()|noescape}
2022-01-23 23:27:52 +03:00
</div>
2020-06-07 19:04:43 +03:00
</article>
<div style="width: 100%; min-height: 100px;">
2021-01-17 02:19:54 +03:00
<div style="float: left; min-height: 100px; width: 70%;">
2020-06-07 19:04:43 +03:00
{include "../components/comments.xml",
comments => $comments,
count => $cCount,
page => $cPage,
model => "notes",
parent => $note}
2021-01-17 02:19:54 +03:00
</div>
<div style="float: right; min-height: 100px; width: 30%;">
<h4>{_actions}</h4>
<div n:if="isset($thisUser) && $thisUser->getId() === $note->getOwner()->getId()">
<a id="_noteDelete" href="/note{$note->getOwner()->getId()}_{$note->getId()}/delete" class="profile_link" style="display:block;width:96%;">{_delete}</a>
</div>
</div>
2020-06-07 19:04:43 +03:00
</div>
{/block}