Created
August 2, 2024 18:16
-
-
Save Klerith/5dcaa8a573b3e54cc7421f7964660e39 to your computer and use it in GitHub Desktop.
Issue Item para el curso de Angular Pro
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
<div | |
class="flex items-center px-2 py-3 mb-5 border rounded-md bg-slate-900 hover:bg-slate-800"> | |
@if( isOpen ) { | |
<i class="fa-regular fa-folder-open text-green-500"></i> | |
} @else { | |
<i class="fa-regular fa-folder-closed text-red-500"></i> | |
} | |
<div class="flex flex-col flex-grow px-2"> | |
<a [routerLink]="['/issue', issue().number]" class="hover:underline"> | |
{{ issue().title }} | |
</a> | |
<span class="text-gray-500"> | |
#{{ issue().number }} opened {{ since }} by | |
<span class="font-bold">{{ issue().user.login }}</span> | |
</span> | |
<div class="flex flex-wrap mt-4"> | |
@for (label of issue().labels; track label.id) { | |
<span | |
class="px-2 py-1 mr-2 text-xs text-white rounded-md" | |
[ngStyle]="{ border: '1px solid #' + label.color }" | |
> | |
{{ label.name }} | |
</span> | |
} | |
</div> | |
</div> | |
<img | |
[src]="issue().user.avatar_url" | |
width="32" | |
height="32" | |
alt="User Avatar" | |
class="w-8 h-8 rounded-full" | |
/> | |
<div class="flex flex-col mx-2 items-center"> | |
<i class="fa-regular fa-message text-gray-400"></i> | |
<span class="px-4 text-gray-400">{{ issue().comments }}</span> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment