only indicate backend type via icon to save space
This commit is contained in:
parent
344541786d
commit
581963a87e
2 changed files with 5 additions and 5 deletions
|
@ -10,14 +10,14 @@
|
|||
<div class="col s4 center-align">
|
||||
% my $self_link = url_for('sstation', station => param('station'));
|
||||
% 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 {
|
||||
% 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 {
|
||||
<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>
|
||||
|
|
|
@ -67,10 +67,10 @@
|
|||
</div>
|
||||
<div class="card-action">
|
||||
% 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 {
|
||||
<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">
|
||||
<i class="material-icons left" aria-hidden="true">send</i>
|
||||
|
|
Loading…
Reference in a new issue