Signed-off-by: oppiliappan me@oppi.li
+14
-6
appview/pages/templates/user/fragments/profileCard.html
+14
-6
appview/pages/templates/user/fragments/profileCard.html
···
17
<p class="text-gray-500 dark:text-gray-400">{{ .Pronouns }}</p>
18
{{ end }}
19
{{ end }}
20
-
<a href="/{{ $userIdent }}/feed.atom">{{ i "rss" "size-4" }}</a>
21
</div>
22
23
<div class="md:hidden">
···
72
{{ end }}
73
</div>
74
{{ end }}
75
-
{{ if ne .FollowStatus.String "IsSelf" }}
76
-
{{ template "user/fragments/follow" . }}
77
-
{{ else }}
78
<button id="editBtn"
79
-
class="btn mt-2 w-full flex items-center gap-2 group"
80
hx-target="#profile-bio"
81
hx-get="/profile/edit-bio"
82
hx-swap="innerHTML">
···
84
edit
85
{{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }}
86
</button>
87
-
{{ end }}
88
</div>
89
<div id="update-profile" class="text-red-400 dark:text-red-500"></div>
90
</div>
···
17
<p class="text-gray-500 dark:text-gray-400">{{ .Pronouns }}</p>
18
{{ end }}
19
{{ end }}
20
</div>
21
22
<div class="md:hidden">
···
71
{{ end }}
72
</div>
73
{{ end }}
74
+
75
+
<div class="flex mt-2 items-center gap-2">
76
+
{{ if ne .FollowStatus.String "IsSelf" }}
77
+
{{ template "user/fragments/follow" . }}
78
+
{{ else }}
79
<button id="editBtn"
80
+
class="btn w-full flex items-center gap-2 group"
81
hx-target="#profile-bio"
82
hx-get="/profile/edit-bio"
83
hx-swap="innerHTML">
···
85
edit
86
{{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }}
87
</button>
88
+
{{ end }}
89
+
90
+
<a class="btn text-sm no-underline hover:no-underline flex items-center gap-2 group"
91
+
href="/{{ $userIdent }}/feed.atom">
92
+
{{ i "rss" "size-4" }}
93
+
</a>
94
+
</div>
95
+
96
</div>
97
<div id="update-profile" class="text-red-400 dark:text-red-500"></div>
98
</div>