This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / appview / pages / templates / timeline / fragments / notifications.html
1.5 kB 35 lines
1{{ define "timeline/fragments/notifications" }} 2 <div class="border border-gray-200 dark:border-gray-700 rounded-sm divide-y divide-gray-200 dark:divide-gray-700"> 3 <a href="/notifications" class="flex items-center justify-between bg-white/50 dark:bg-gray-800/50 no-underline hover:no-underline"> 4 <h3 class="text-base dark:text-white flex items-center gap-2 px-4 py-2"> 5 {{ i "bell" "size-4 flex-shrink-0" }} 6 Notifications 7 </h3> 8 <span class="text-sm font-normal flex items-center gap-1 pr-4"> 9 View all {{ i "arrow-right" "size-3.5" }} 10 </span> 11 </a> 12 13 {{ if not .LoggedInUser }} 14 <div class="px-4 py-8 text-sm text-center text-gray-400 dark:text-gray-500"> 15 <div class="w-10 h-10 mx-auto mb-3 text-gray-300 dark:text-gray-600"> 16 {{ i "bell-off" "w-10 h-10" }} 17 </div> 18 <a href="/login">Log in</a> to view your inbox 19 </div> 20 {{ else if not .Notifications }} 21 <div class="px-4 py-8 text-sm text-center text-gray-400 dark:text-gray-500"> 22 <div class="w-10 h-10 mx-auto mb-3 text-gray-300 dark:text-gray-600"> 23 {{ i "inbox" "w-10 h-10" }} 24 </div> 25 <p>All caught up!</p> 26 </div> 27 {{ else }} 28 <div class="divide-y divide-gray-200 dark:divide-gray-700"> 29 {{ range .Notifications }} 30 {{ template "notifications/fragments/item" . }} 31 {{ end }} 32 </div> 33 {{ end }} 34 </div> 35{{ end }}