Skip to content

Commit

Permalink
✨ add beta-tooltip + ticket icon to tags (#2117)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrLevin authored Nov 13, 2023
1 parent 2674000 commit ae9d056
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/Enum/StatusTagKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ enum StatusTagKey: string implements IconEnumInterface

public function faIcon(): ?string {
return match ($this) {
self::SEAT => 'fa-couch',
self::ROLE => 'fa-briefcase',
default => null,
self::SEAT => 'fa-couch',
self::ROLE => 'fa-briefcase',
self::TICKET => 'fa-qrcode',
default => null,
};
}

Expand Down
1 change: 1 addition & 0 deletions resources/lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"controller.status.like-not-found": "Like nicht gefunden.",
"controller.status.like-ok": "Liked!",
"controller.status.not-permitted": "Das darfst Du nicht.",
"tag-beta-tooltip": "Tags können derzeit auf traewelling.de nur angesehen werden. Du kannst sie aber in Drittanbieter-Apps bearbeiten.",
"controller.transport.checkin-heading": "Eingecheckt",
"controller.transport.checkin-ok": "Du hast erfolgreich in :lineName eingecheckt!|Du hast erfolgreich in Linie :lineName eingecheckt!",
"controller.transport.no-name-given": "Du musst einen Stationsnamen angeben!",
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"controller.status.like-not-found": "Like not found.",
"controller.status.like-ok": "Like created!",
"controller.status.not-permitted": "You're not permitted to do this.",
"tag-beta-tooltip": "Tags can currently only be viewed on traewelling.de. You can edit them in third-party apps.",
"controller.social.already-connected-error": "This Account is already connected to another user.",
"controller.social.create-error": "There has been an error creating your account.",
"controller.social.delete-never-connected": "Your user does not have a Social Login provider.",
Expand Down
5 changes: 5 additions & 0 deletions resources/views/status.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
</span>
@endcan
@endforeach
@if(count($status->tags) > 0)
<span class="badge bg-trwl" data-mdb-toggle="tooltip" title="{{__('tag-beta-tooltip')}}">
<i class="fa-solid fa-info-circle"></i>
</span>
@endif
</div>
</div>
@if(auth()->check() && auth()->user()->id == $status->user_id)
Expand Down

0 comments on commit ae9d056

Please sign in to comment.