diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-10 17:32:40 +0200 | 
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-10 17:32:40 +0200 | 
| commit | f0ba660417745900d84ab164a0cca398a092fa94 (patch) | |
| tree | ff3fe326e11c656d5464a73fc12698a71cea6311 | |
| parent | 49bb44aff8e60c295880d370265abb644ccdf918 (diff) | |
train details: hide first class utilization if it is unknown
| -rw-r--r-- | templates/_train_details.html.ep | 12 | 
1 files changed, 9 insertions, 3 deletions
| diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index a0829b6..fd18623 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -280,7 +280,9 @@            <%= $stop->{name} %></a>  %         if ($stop->{load}{FIRST} or $stop->{load}{SECOND}) {  %           my ($text, $icon1, $icon2) = utilization_icon([$stop->{load}{FIRST}, $stop->{load}{SECOND}]); -            <i class="material-icons" aria-hidden="true"><%= $icon1 %></i> +            % if ($icon1 ne 'help_outline') { +              <i class="material-icons" aria-hidden="true"><%= $icon1 %></i> +            % }              <i class="material-icons" aria-hidden="true"><%= $icon2 %></i>  %         }            </li> @@ -323,7 +325,9 @@              <strong><%= stash('station_name') %></strong>  %           if (my $u = $departure->{utilization}) {  %             my ($text, $icon1, $icon2) = utilization_icon($u); -              <i class="material-icons" aria-hidden="true"><%= $icon1 %></i> +            % if ($icon1 ne 'help_outline') { +                <i class="material-icons" aria-hidden="true"><%= $icon1 %></i> +            % }                <i class="material-icons" aria-hidden="true"><%= $icon2 %></i>  %           }            </li> @@ -371,7 +375,9 @@            <%= $stop->{name} %></a>  %         if ($stop->{load}{FIRST} or $stop->{load}{SECOND}) {  %           my ($text, $icon1, $icon2) = utilization_icon([$stop->{load}{FIRST}, $stop->{load}{SECOND}]); -            <i class="material-icons" aria-hidden="true"><%= $icon1 %></i> +            % if ($icon1 ne 'help_outline') { +              <i class="material-icons" aria-hidden="true"><%= $icon1 %></i> +            % }              <i class="material-icons" aria-hidden="true"><%= $icon2 %></i>  %         }            </li> | 
