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" }}