patx/gitman
move date joined and edit profile button under username
Commit 8e4af1d · patx · 2026-05-05T21:22:10-04:00
Comments
No comments yet.
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">