-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2577-Addressed review comments for aria label and created a new comp…
…onent as per the review
- Loading branch information
1 parent
c976c34
commit 4569e94
Showing
3 changed files
with
37 additions
and
58 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
28 changes: 28 additions & 0 deletions
28
sourcecode/hub/resources/views/components/version-details.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,28 @@ | ||
@props(['version', 'index', 'loop']) | ||
|
||
<li class="d-flex flex-column p-1 mb-1 rounded {{ $loop->first ? 'border border-success bg-success-subtle' : 'border border-secondary bg-white' }}"> | ||
<div class="version-details-container d-flex w-100 align-items-center justify-content-between"> | ||
<div class="version-details-80"> | ||
<div class="version-number"> | ||
<b>{{ trans('messages.version') }} {{ $index + 1 }}</b> | ||
</div> | ||
<div class="version-date"> | ||
{{ $version->created_at->isoFormat('LL') }} | ||
</div> | ||
<div class="version-status"> | ||
@if ($version->published) | ||
{{ trans('messages.published') }} | ||
@else | ||
<span>{{ trans('messages.unpublished') }}</span> | ||
@endif | ||
</div> | ||
</div> | ||
@unless ($version->published) | ||
<div class="rounded-pill bg-light d-flex justify-content-center align-items-center p-2 m-2 text-black fw-bold bg-light">{{ trans('messages.draft') }}</div> | ||
@else | ||
<div class="version-icons-20 d-flex justify-content-center align-items-center p-2 m-2"> | ||
<span class="text-black fw-bold"><x-icon name="check2-circle" class="text-black"/></span> | ||
</div> | ||
@endunless | ||
</div> | ||
</li> |
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