summaryrefslogtreecommitdiff
path: root/templates/landingpage.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/landingpage.html.ep')
-rw-r--r--templates/landingpage.html.ep7
1 files changed, 1 insertions, 6 deletions
diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep
index 0ccb1ad..b5d1745 100644
--- a/templates/landingpage.html.ep
+++ b/templates/landingpage.html.ep
@@ -67,12 +67,7 @@
</div>
</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} %></a>
- % }
- % else {
- <a href="/account/select_backend?redirect_to=/" class="btn btn-flat"><i class="material-icons left" aria-hidden="true">train</i>IRIS</a>
- % }
+ <a href="/account/select_backend?redirect_to=/" class="btn btn-flat"><i class="material-icons left" aria-hidden="true"><%= $user->{backend_hafas} ? 'directions' : 'train' %></i><%= $user->{backend_name} // 'IRIS' %></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>
Abfahrten