patx/gitman

move date joined and edit profile button under username

Commit 8e4af1d · patx · 2026-05-05T21:22:10-04:00

Changeset
8e4af1d95def23675bbe162d63dd5afe7c646a0a
Parents
d6200662533078e6a17e87994fb0254f9d99778f

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/templates/profile.tpl b/templates/profile.tpl
index 6eecfa6..4f2e537 100644
--- a/templates/profile.tpl
+++ b/templates/profile.tpl
@@ -3,12 +3,18 @@
 
 <section class="profile-header">
   <h1>
+  % if not profile_user["display_name"]:
+    {{profile_name}} <small>(@{{profile_user["username"]}})</small>
+  % else:
     {{profile_name}}
-  % if profile_user["display_name"]:
-    <div class="muted">@{{profile_user["username"]}}</div>
   % end
   </h1>
-
+  <p class="muted"><small>
+    Joined {{profile_user["created_at"]}}
+    % if is_self:
+      <a class="button-link" href="/settings/profile">Edit profile</a>
+    % end
+  </small></p>
   % if profile_user["bio"]:
     <p>{{!render_markdown_links(profile_user["bio"])}}</p>
   % else:
@@ -17,12 +23,6 @@
   % if profile_user["website"]:
     <p><a href="{{profile_user['website']}}" rel="nofollow">{{profile_user["website"]}}</a></p>
   % end
-  <p class="muted"><small>
-    Joined {{profile_user["created_at"]}}
-    % if is_self:
-      <a class="button-link" href="/settings/profile">Edit profile</a>
-    % end
-  </small></p>
 </section>
 
 <section class="panel">