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">
|
<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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue