You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.3 KiB

% if (my $tag_text = $self->data->{tag_text}) {
<p><%= $tag_text %></p>
% }
% for my $page (@$pages) {
<div class="article">
<h2><a class="header" href="<%= $app->page_url($page) %>"><%= $page->title %></a></h2>
% my @sections = $page->sections;
<%= $sections[0] %>
% if (@sections > 1) {
<p><a href="<%= $app->page_url($page) %>#section-2">&rarr;&nbsp;Читать дальше...</a></p>
% }
<div class="bottom_bar">
<span class="date"><%= $page->date->strftime('%Y-%m-%d') %></span>
% if ($page->author) {
<span class="user"><%= $page->author %></span>
% }
<span class="tags">
% for my $tag ($page->tags) {
<a href="<%= $tag->href %>" rel="tag"><%= $tag->text %></a>
% }
</span>
</div>
</div>
% }
<div class="pager">
<a class="button next <%= $self->prev ? 'button-primary' : 'disabled' %>"
rel="prev" href="<%= $self->prev // '' %>">&larr; Следующие
</a>
|
<a class="button prev <%= $self->next ? 'button-primary' : 'disabled' %>"
rel="next" href="<%= $self->next // '' %>">Предыдущие &rarr;
</a>
</div>
% if (my @links = $self->links('feed')) {
<div class="feeds">
% for my $link (@links) {
<a href="<%= $link->href %>" rel="alternate" type="<%= $link->type %>"><%= $link->text %></a>
% }
</div>
% }