diff options
| -rw-r--r-- | templates/_train_details.html.ep | 4 | ||||
| -rw-r--r-- | templates/app.html.ep | 7 | 
2 files changed, 8 insertions, 3 deletions
| diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 6f9de56..62abc80 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -254,7 +254,7 @@              </li>  %         }            <li class="<%= $stop->{isPast} ? 'past-stop' : 'future-stop' %>"> -          <a href="<%= url_for('station', station => $stop->{eva} // $stop->{name})->query({detailed => param('detailed'), past => param('past'), rt => param('rt'), efa => param('efa'), hafas => param('hafas')}) %>#<%= ($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x}) %>" class=" +          <a href="<%= url_for('station', station => $stop->{eva} // $stop->{name})->query({detailed => param('detailed'), past => param('past'), rt => param('rt'), dbris => param('dbris'), efa => param('efa'), hafas => param('hafas')}) %>#<%= ((param('dbris') or param('hafas')) and $departure->{trip_id}) ? ($departure->{trip_id} =~ s{[ #|]}{x}gr) : (($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x})) %>" class="  %         if ($stop->{isAdditional}) {              additional-stop  %         } @@ -349,7 +349,7 @@              </li>  %         }            <li class="<%= $stop->{isPast} ? 'past-stop' : 'future-stop' %>"> -          <a href="<%= url_for('station', station => $stop->{eva} // $stop->{name})->query({detailed => param('detailed'), past => param('past'), rt => param('rt'), efa => param('efa'), hafas => param('hafas')}) %>#<%= ($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x}) %>" class=" +          <a href="<%= url_for('station', station => $stop->{eva} // $stop->{name})->query({detailed => param('detailed'), past => param('past'), rt => param('rt'), dbris => param('dbris'), efa => param('efa'), hafas => param('hafas')}) %>#<%= ((param('dbris') or param('hafas')) and $departure->{trip_id}) ? ($departure->{trip_id} =~ s{[ #|]}{x}gr) : (($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x})) %>" class="  %         if ($stop->{isAdditional}) {              additional-stop  %         } diff --git a/templates/app.html.ep b/templates/app.html.ep index fda2c23..8b52c61 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -64,7 +64,12 @@  %   else {        <a href="/z/<%= Mojo::Util::url_escape(($departure->{train_type} // q{}) . ' ' . ($departure->{train_no} // $departure->{train} // q{})) . '/' .  Mojo::Util::url_escape($departure->{station} // $station) %>">  %   } -    <div class="anchor" id="<%= ($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x}) %>"></div> +%   if (param('dbris') or param('hafas')) { +      <div class="anchor" id="<%= $departure->{journey_id} =~ s{[ #|]}{x}gr %>"></div> +%   } +%   else { +      <div class="anchor" id="<%= ($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x}) %>"></div> +%   }      <div class="line <%= $departure->{linetype} %>">      % if ($departure->{train_type} and $departure->{train_no}) {  %=    $departure->{train_type} | 
