-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛🚸 Fix permissions and improve message block (#530)
* Fix permissions and improve message block closes #502 * Add translation * ui * emoji -> font awesome
- Loading branch information
1 parent
5d57795
commit a4eb7f0
Showing
8 changed files
with
69 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
resources/views/includes/messages/checkin-success.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
@if(session()->has('checkin-success')) | ||
<div class="alert alert-success alert-dismissible" role="alert"> | ||
<button type="button" class="btn-close" data-dismiss="alert" aria-label="Close"></button> | ||
<h4 class="alert-heading">{{ __('controller.transport.checkin-heading') }}</h4> | ||
<p>{{ trans_choice('controller.transport.checkin-ok', preg_match('/\s/', session()->get('checkin-success')['lineName']), ['lineName' => session()->get('checkin-success')['lineName']]) }}</p> | ||
@if(session()->get('checkin-success')['alsoOnThisConnection']->count() >= 1) | ||
<span>{{ trans_choice('controller.transport.also-in-connection', session()->get('checkin-success')['alsoOnThisConnection']->count()) }}</span> | ||
<table style="margin-left: auto;margin-right: auto;"> | ||
<tbody> | ||
@foreach(session()->get('checkin-success')['alsoOnThisConnection'] as $otherStatus) | ||
@if($otherStatus->statusInvisibleToMe) | ||
<tr> | ||
<td colspan="5"> | ||
<i class="fas fa-user-secret" aria-hidden="true"></i> | ||
{{__('user.private-profile')}} | ||
</td> | ||
</tr> | ||
@else | ||
<tr> | ||
<td> | ||
<i class="fas fa-user" aria-hidden="true"></i> | ||
<a href="{{ route('account.show', ['username' => $otherStatus->user->username]) }}"> | ||
{{ '@' . $otherStatus->user->username }} | ||
</a> | ||
</td> | ||
<td>-</td> | ||
<td>{{ $otherStatus->trainCheckin->Origin->name }}</td> | ||
<td>➜</td> | ||
<td>{{ $otherStatus->trainCheckin->Destination->name }}</td> | ||
</tr> | ||
@endif | ||
@endforeach | ||
</tbody> | ||
</table> | ||
@endif | ||
@if(session()->get('checkin-success')['event']) | ||
<p> | ||
{!! __('events.on-your-way', [ | ||
"name" => session()->get('checkin-success')['event']['name'], | ||
"url" => route('statuses.byEvent', ['eventSlug' => session()->get('checkin-success')['event']['slug']]) | ||
]) !!} | ||
</p> | ||
@endif | ||
<hr> | ||
<p class="mb-0"> | ||
<i class="fa fa-stopwatch d-inline"></i> | ||
<b>{!! durationToSpan(secondsToDuration(session()->get('checkin-success')['duration'] * 60)) !!}</b> | ||
— | ||
<i class="fa fa-route d-inline"></i> | ||
<b> | ||
{{ number(session()->get('checkin-success')['distance']) }} | ||
<small>km</small> | ||
</b> | ||
— | ||
<i class="fa fa-dice-d20 d-inline"></i> | ||
<b>{{ session()->get('checkin-success')['points'] }}<small>{{__('profile.points-abbr')}}</small></b> | ||
</p> | ||
</div> | ||
@endif |