Commit bbcd08a7 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

add geotrain links to menu / landing page

parent 408d7381
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
<div class="geolocation">
<div class="candidateheader">Experimentelles Beta-Feature.<br/><br/>Züge auf der Strecke:</div>
<div class="candidateheader">Beta-Feature<br/><br/>Züge auf der Strecke:</div>
<div class="candidatestatus">Bitte warten…</div>
<div class="candidatelist"></div>
</div> <!-- geolocation -->
+4 −1
Original line number Diff line number Diff line
@@ -9,7 +9,10 @@
  Verfügbarkeitsgarantie. Alle Angaben ohne Gewähr.
</p>
<p class="geolink">
<a class="button" href="<%= url_for('_autostop')->to_abs->scheme('https') %>">Bahnhöfe im Umfeld suchen</a>
<a class="button" href="<%= url_for('_autostop')->to_abs->scheme('https') %>">Stationen in der Umgebung suchen</a>
</p>
<p class="geolink">
<a class="button" href="<%= url_for('_autotrain')->to_abs->scheme('https') %>">Fahrende Züge suchen (Beta)</a>
</p>
<p>
Oder hier angeben:
+7 −4
Original line number Diff line number Diff line
@@ -124,16 +124,16 @@ Bitte eine Station aus der Liste auswählen</div>
%= form_for _redirect => begin
<div>
  <div class="field">
    <div class="desc">Bahnhof / Haltestelle</div>
    <div class="desc">Zug / Station</div>
    <div>
% if (stash('stationlist')) {
      %= select_field input => stash('stationlist')
% }
% elsif (stash('input')) {
      %= text_field 'input', class => 'station', placeholder => 'Name oder DS100-Kürzel', id => 'stationinput'
      %= text_field 'input', class => 'station', placeholder => 'Zug, Stationsname oder DS100-Kürzel', id => 'stationinput'
% }
% else {
      %= text_field 'input', class => 'station', placeholder => 'Name oder DS100-Kürzel', id => 'stationinput', autofocus => 'autofocus'
      %= text_field 'input', class => 'station', placeholder => 'Zug, Stationsname oder DS100-Kürzel', id => 'stationinput', autofocus => 'autofocus'
% }
    </div>
  </div>
@@ -143,7 +143,10 @@ Bitte eine Station aus der Liste auswählen</div>
  % if (not stash('show_intro')) {
    <div class="break"></div>
    <div class="field">
      <a class="button" href="<%= url_for('_autostop')->to_abs->scheme('https') %>">Bahnhöfe im Umfeld suchen</a>
      <a class="button" href="<%= url_for('_autostop')->to_abs->scheme('https') %>">Stationen in der Umgebung suchen</a>
    </div>
    <div class="field">
      <a class="button" href="<%= url_for('_autotrain')->to_abs->scheme('https') %>">Fahrende Züge suchen (Beta)</a>
    </div>
  % }
  <div class="break"></div>