backend: move all header and pager display out of layout
This commit is contained in:
parent
1748621469
commit
c78bd0c85b
@ -1,2 +1,3 @@
|
|||||||
% layout "main";
|
% layout "main";
|
||||||
% title "Error";
|
% title "Error";
|
||||||
|
<h1><%= title %></h1>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
% layout "main";
|
% layout "main";
|
||||||
|
<h1><%= title %></h1>
|
||||||
|
|
||||||
<div class="flex-c-horizontal flex-c-wrap gallery">
|
<div class="flex-c-horizontal flex-c-wrap gallery">
|
||||||
% for my $m ($media->@*) {
|
% for my $m ($media->@*) {
|
||||||
@ -7,3 +8,5 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
% }
|
% }
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
%= include "_pager";
|
||||||
|
@ -18,14 +18,8 @@
|
|||||||
</header>
|
</header>
|
||||||
<main class="flex-i-fullsize flex-c-vertical">
|
<main class="flex-i-fullsize flex-c-vertical">
|
||||||
<div class="viewport flex-i-fullsize flex-c-vertical">
|
<div class="viewport flex-i-fullsize flex-c-vertical">
|
||||||
% if (defined title) {
|
|
||||||
<h1><%= title %></h1>
|
|
||||||
% }
|
|
||||||
<div class="flex-i-fullsize">
|
|
||||||
%= content
|
%= content
|
||||||
</div>
|
</div>
|
||||||
%= include "_pager"
|
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
<footer class="border-top">
|
<footer class="border-top">
|
||||||
<p class="viewport text-center text-small">
|
<p class="viewport text-center text-small">
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
% } else {
|
% } else {
|
||||||
<dd><%= c($media->{tags}->@*)
|
<dd><%= c($media->{tags}->@*)
|
||||||
->map(sub { link_to $_ => url_for("tag_show", tag_id_or_name => $_) })
|
->map(sub { link_to $_ => url_for("tag_show", tag_id_or_name => $_) })
|
||||||
->join(", ") %>.</dd>
|
->join(", ") %></dd>
|
||||||
% }
|
% }
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
%= include "_pager";
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
% layout "main";
|
% layout "main";
|
||||||
% title "Not Found";
|
% title "Not Found";
|
||||||
|
<h1><%= title %></h1>
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
% layout "main";
|
% layout "main";
|
||||||
|
<h1><%= title %></h1>
|
||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
% for my $t ($tags->@*) {
|
% for my $t ($tags->@*) {
|
||||||
<%= link_to $t->{name} => $t->{uri} %>(<%= $t->{count} %>)
|
<%= link_to $t->{name} => $t->{uri} %>(<%= $t->{count} %>)
|
||||||
% }
|
% }
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
%= include "_pager";
|
||||||
|
Loading…
Reference in New Issue
Block a user