mirror of
https://github.com/thomiceli/opengist.git
synced 2025-02-06 09:28:06 +00:00
Fix user avatar on gist likes list (#425)
This commit is contained in:
parent
87ae60ce4c
commit
6fd7f77003
2
templates/pages/likes.html
vendored
2
templates/pages/likes.html
vendored
@ -6,7 +6,7 @@
|
||||
{{ range $user := .likers }}
|
||||
<div class="relative flex items-center space-x-3 rounded-lg border border-gray-300 dark:border-gray-600 bg-gray-50 dark:bg-gray-800 px-6 py-5 shadow-sm focus-within:ring-1 focus-within:border-primary-500 focus-within:ring-primary-500 hover:border-gray-600 dark:hover:border-gray-400">
|
||||
<div class="min-w-0 flex">
|
||||
{{ if not (shouldGenerateAvatar .fromUser $.DisableGravatar) }}
|
||||
{{ if not (shouldGenerateAvatar . $.DisableGravatar) }}
|
||||
<img class="h-12 w-12 rounded-md mr-2 border border-gray-200 dark:border-gray-700" src="{{ avatarUrl $user $.DisableGravatar }}" alt="{{ $user.Username }}'s Avatar">
|
||||
{{ else }}
|
||||
<svg class="h-12 w-12 rounded-md mr-2 border border-gray-200 dark:border-gray-700" data-jdenticon-value="{{ $user.Username }}" width="48" height="48"></svg>
|
||||
|
Loading…
x
Reference in New Issue
Block a user