2019-04-07 16:44:33 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col s12">
|
|
|
|
<ul class="pagination">
|
2020-11-21 14:33:43 +00:00
|
|
|
% my ($prev, $current, $next) = journeys->get_nav_months(uid => current_user->{id}, year => $year, month => $month);
|
|
|
|
% if ($prev) {
|
|
|
|
<li class="waves-effect waves-light"><a href="/history/<%= $prev->[0] %>"><i class="material-icons">chevron_left</i></a></li>
|
2019-04-07 16:44:33 +00:00
|
|
|
% }
|
2020-11-21 14:33:43 +00:00
|
|
|
% else {
|
|
|
|
<li class="disabled"><a href="#!"><i class="material-icons">chevron_left</i></a></li>
|
|
|
|
% }
|
|
|
|
% if ($current) {
|
|
|
|
<li class="" style="min-width: 8em;"><a href="/history/<%= $current->[0] %>"><%= $current->[1] %></a></li>
|
|
|
|
% }
|
|
|
|
% if ($next) {
|
|
|
|
<li class="waves-effect waves-light"><a href="/history/<%= $next->[0] %>"><i class="material-icons">chevron_right</i></a></li>
|
|
|
|
% }
|
|
|
|
% else {
|
|
|
|
<li class="disabled"><a href="#!"><i class="material-icons">chevron_right</i></a></li>
|
|
|
|
% }
|
|
|
|
<li class=""><a href="/history/<%= $year %>"><%= $year %></a></li>
|
2019-04-07 16:44:33 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|