Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions resources/views/articles/overview.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@
</a>

@if ($author->isVerifiedAuthor())
<span title="This is a verified author">
@svg('heroicon-s-check-badge', 'w-5 h-5 text-lio-500')
</span>
<x-badges.verified />
@endif
</span>

Expand Down
8 changes: 2 additions & 6 deletions resources/views/articles/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ class="w-full bg-center bg-gray-800"
</a>

@if ($article->author()->isVerifiedAuthor())
<span title="This is a verified author">
@svg('heroicon-o-check-badge', 'w-5 h-5 text-white')
</span>
<x-badges.verified type="o" color="text-white" />
@endif
</div>

Expand Down Expand Up @@ -161,9 +159,7 @@ class="prose prose-lg text-gray-800 prose-lio"
</a>

@if ($article->author()->isVerifiedAuthor())
<span title="This is a verified author">
@svg('heroicon-s-check-badge', 'w-6 h-6 text-lio-500')
</span>
<x-badges.verified color="text-lio-500" />
@endif
</span>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
</a>

@if ($article->author()->isVerifiedAuthor())
<span title="This is a verified author">
@svg('heroicon-s-check-badge', 'w-5 h-5 text-lio-500')
</span>
<x-badges.verified />
@endif
</div>

Expand Down
4 changes: 1 addition & 3 deletions resources/views/components/articles/user-summary.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
<span class="text-gray-900">{{ $article->author()->username() }}</span>

@if ($article->author()->isVerifiedAuthor())
<span title="This is a verified author">
@svg('heroicon-s-check-badge', 'w-5 h-5 text-lio-500')
</span>
<x-badges.verified />
@endif
</div>

Expand Down
5 changes: 5 additions & 0 deletions resources/views/components/badges/verified.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@props(['type' => 's', 'color' => 'text-lio-500'])

<span title="This is a verified author">
@svg("heroicon-$type-check-badge", "w-5 h-5 $color")
</span>
2 changes: 2 additions & 0 deletions resources/views/users/profile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class="w-full bg-center bg-gray-800 h-60 container mx-auto"
<span class="border border-lio-500 text-lio-500 rounded-sm px-3 py-1">
{{ $user->isAdmin() ? 'Admin' : 'Moderator' }}
</span>
@elseif ($user->isVerifiedAuthor())
<x-badges.verified />
@endif
</div>

Expand Down