Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Dec 2, 2018
1 parent 1549b2b commit c3118a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/Perl/Maven.pm
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ hook before_template => sub {
if ( $t->{series}{chapters}[$ch]{sub}[$e]{url} eq $path ) {
$t->{series}{chapters}[$ch]{sub}[$e]{current} = 1;
if ( $ch > 0 and $e > 0 ) {
$t->{toc}{url} = $t->{series}{chapters}[0]{sub}[0]{url};
$t->{toc}{title} = $t->{series}{chapters}[0]{sub}[0]{title};
}
$t->{toc}{url} = $t->{series}{chapters}[0]{sub}[0]{url};
$t->{toc}{title} = $t->{series}{chapters}[0]{sub}[0]{title};
}
if ( $e > 0 ) {
$t->{prev}{url} = $t->{series}{chapters}[$ch]{sub}[ $e - 1 ]{url};
$t->{prev}{title} = $t->{series}{chapters}[$ch]{sub}[ $e - 1 ]{title};
Expand Down
5 changes: 2 additions & 3 deletions views/incl/navigation.tt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
<span class="label label-lg label-success toc">
<a href="<% toc.url %>" title="<% toc.title %>">TOC <span class="glyphicon glyphicon-chevron-up"></span> </a>
</span>
<% END %></h2>
</div>
<% END %><% IF next %>
<% END %>
<% IF next %>
<span class="label label-lg label-success next">
<a href="<% next.url %>" title="<% next.title %>">Next <span class="glyphicon glyphicon-chevron-right"></span> </a>
</span>
Expand Down

0 comments on commit c3118a1

Please sign in to comment.