only indicate backend type via icon to save space

This commit is contained in:
Birte Kristina Friesel 2024-07-26 21:23:21 +02:00
parent 344541786d
commit 581963a87e
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA
2 changed files with 5 additions and 5 deletions

View file

@ -10,14 +10,14 @@
<div class="col s4 center-align"> <div class="col s4 center-align">
% my $self_link = url_for('sstation', station => param('station')); % my $self_link = url_for('sstation', station => param('station'));
% if (param('hafas')) { % if (param('hafas')) {
<span class="btn-small disabled"><i class="material-icons left" aria-hidden="true">directions</i> <%= param('hafas') %> (HAFAS)</span> <span class="btn-small disabled"><i class="material-icons left" aria-hidden="true">directions</i> <%= param('hafas') %></span>
% } % }
% else { % else {
% if ($user->{backend_id}) { % if ($user->{backend_id}) {
<a href="/account/select_backend?redirect_to=<%= $self_link %>" class="btn-small"><i class="material-icons left" aria-hidden="true">directions</i><%= $user->{backend_name} %> (<%= $user->{backend_hafas} ? 'HAFAS' : q{} %>)</a> <a href="/account/select_backend?redirect_to=<%= $self_link %>" class="btn-small"><i class="material-icons left" aria-hidden="true">directions</i><%= $user->{backend_name} %></a>
% } % }
% else { % else {
<a href="/account/select_backend?redirect_to=<%= $self_link %>" class="btn-small"><i class="material-icons left" aria-hidden="true">train</i>DB (IRIS-TTS)</a> <a href="/account/select_backend?redirect_to=<%= $self_link %>" class="btn-small"><i class="material-icons left" aria-hidden="true">train</i>DB</a>
% } % }
% } % }
</div> </div>

View file

@ -67,10 +67,10 @@
</div> </div>
<div class="card-action"> <div class="card-action">
% if ($user->{backend_id}) { % if ($user->{backend_id}) {
<a href="/account/select_backend?redirect_to=/" class="btn btn-flat"><i class="material-icons left" aria-hidden="true">directions</i><%= $user->{backend_name} %> (<%= $user->{backend_hafas} ? 'HAFAS' : q{} %>)</a> <a href="/account/select_backend?redirect_to=/" class="btn btn-flat"><i class="material-icons left" aria-hidden="true">directions</i><%= $user->{backend_name} %></a>
% } % }
% else { % else {
<a href="/account/select_backend?redirect_to=/" class="btn btn-flat"><i class="material-icons left" aria-hidden="true">train</i>DB (IRIS-TTS)</a> <a href="/account/select_backend?redirect_to=/" class="btn btn-flat"><i class="material-icons left" aria-hidden="true">train</i>DB</a>
% } % }
<button class="btn right waves-effect waves-light btn-flat" type="submit" name="action" value="departures"> <button class="btn right waves-effect waves-light btn-flat" type="submit" name="action" value="departures">
<i class="material-icons left" aria-hidden="true">send</i> <i class="material-icons left" aria-hidden="true">send</i>