diff --git a/resources/views/includes/station-autocomplete.blade.php b/resources/views/includes/station-autocomplete.blade.php index abe9677ae..86dd12d68 100644 --- a/resources/views/includes/station-autocomplete.blade.php +++ b/resources/views/includes/station-autocomplete.blade.php @@ -14,55 +14,83 @@
- station) value="{{request()->station}}" @endisset> + station) value="{{request()->station}}" @endisset + /> @if($latest->count() > 0 || Auth::user()->home) -
+
-
+
@endif - -
+ +
-
@if(Auth::user()->home) + title="{{ Auth::user()->home->name }}" id="home-button" + class="list-group-item list-group-item-action"> {{ Auth::user()->home->name }} @endif @if($latest->count()) - {{__('stationboard.last-stations')}} + {{__('stationboard.last-stations')}} @endif @foreach($latest as $station) + title="{{ $station->name }}" id="home-button" + class="list-group-item list-group-item-action"> {{ $station->name }} @endforeach
- - + +
- - - - - - - + + + + + + +
diff --git a/resources/views/leaderboard/leaderboard.blade.php b/resources/views/leaderboard/leaderboard.blade.php index 820665ed4..a0c85538f 100644 --- a/resources/views/leaderboard/leaderboard.blade.php +++ b/resources/views/leaderboard/leaderboard.blade.php @@ -1,8 +1,6 @@ @extends('layouts.app') -@section('title') - {{ __('menu.leaderboard') }} -@endsection +@section('title'){{ __('menu.leaderboard') }}@endsection @section('content')
diff --git a/resources/views/leaderboard/month.blade.php b/resources/views/leaderboard/month.blade.php index 61a2d75e0..03b7b7a4b 100644 --- a/resources/views/leaderboard/month.blade.php +++ b/resources/views/leaderboard/month.blade.php @@ -1,8 +1,6 @@ @extends('layouts.app') -@section('title') - {{ __('menu.leaderboard') }} -@endsection +@section('title'){{ __('menu.leaderboard') }}@endsection @section('content')
diff --git a/resources/views/search.blade.php b/resources/views/search.blade.php index 815c3a1ad..27f5517d6 100644 --- a/resources/views/search.blade.php +++ b/resources/views/search.blade.php @@ -1,6 +1,6 @@ @extends('layouts.app') -@section('title')Dashboard@endsection +@section('title')Dashboard @endsection @section('content')
diff --git a/resources/views/stationboard.blade.php b/resources/views/stationboard.blade.php index 518bf1f3b..8040a4a4f 100644 --- a/resources/views/stationboard.blade.php +++ b/resources/views/stationboard.blade.php @@ -1,6 +1,6 @@ @extends('layouts.app') -@section('title')RIS@endsection +@section('title')RIS @endsection @section('content') @include('includes.station-autocomplete') diff --git a/tests/Unit/HelperMethodTest.php b/tests/Unit/HelperMethodTest.php index b5d499233..4a8678d07 100644 --- a/tests/Unit/HelperMethodTest.php +++ b/tests/Unit/HelperMethodTest.php @@ -73,7 +73,7 @@ public function testStationLink() { $response = $this->actingAs($user) ->get($links[0]->getAttribute('href')); - $response->assertSee('assertSee('placeholder="Haltestelle / DS100" value="' . $alternatedTo . '"', false); } }