From 76f9501c1d0dac8bd4e4780d1c7687d3c34e52e1 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sat, 29 Mar 2025 00:21:36 +0200 Subject: [PATCH] appview: profile: more mnml --- appview/pages/templates/user/profile.html | 25 +++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/appview/pages/templates/user/profile.html b/appview/pages/templates/user/profile.html index 32fb86e0..b4a1df2e 100644 --- a/appview/pages/templates/user/profile.html +++ b/appview/pages/templates/user/profile.html @@ -24,14 +24,14 @@ {{ range .ProfileTimeline }} {{ if eq .Type "issue" }}
- {{ $bgColor := "bg-gray-800 dark:bg-gray-700" }} + {{ $textColor := "text-gray-800 dark:text-gray-700" }} {{ $icon := "ban" }} {{ if .Issue.Open }} - {{ $bgColor = "bg-green-600 dark:bg-green-700" }} + {{ $textColor = "text-green-600 dark:text-green-700" }} {{ $icon = "circle-dot" }} {{ end }} -
- {{ i $icon "w-4 h-4 text-white" }} +
+ {{ i $icon "w-5 h-5" }}

@@ -44,8 +44,17 @@

{{ else if eq .Type "pull" }}
-
- {{ i "git-pull-request" "w-4 h-4" }} + {{ $textColor := "text-gray-800 dark:text-gray-700" }} + {{ $icon := "git-pull-request-closed" }} + {{ if .Pull.State.IsOpen }} + {{ $textColor = "text-green-600 dark:text-green-700" }} + {{ $icon = "git-pull-request" }} + {{ else if .Pull.State.IsMerged }} + {{ $textColor = "text-purple-600 dark:text-purple-700" }} + {{ $icon = "git-merge" }} + {{ end }} +
+ {{ i $icon "w-5 h-5" }}

@@ -59,8 +68,8 @@

{{ else if eq .Type "repo" }}
-
- {{ i "book-plus" "w-4 h-4" }} +
+ {{ i "book-plus" "w-5 h-5" }}

-- 2.51.2