Skip to content

Commit

Permalink
💄 User template: Move account creation date up in the profile
Browse files Browse the repository at this point in the history
This commit makes the account creation date appear higher up in the user
profile. In FAS 2, this information was very visible and prominent in
user profiles. It is annoying for me to scroll to the bottom of an
account for this information. This is a minor UI tweak to make it easier
to find. :D

Signed-off-by: Justin W. Flory (he/him) <[email protected]>
  • Loading branch information
jwflory authored and abompard committed Feb 12, 2025
1 parent 1a9c97c commit 0995a83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions noggin/templates/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ <h5 class="mb-3" id="user_mail"><a href="mailto:{{ user.mail }}">{{ user.mail }}
{% endif %}
</div>
<ul class="list-group list-group-flush" id="user_attributes">
{% if user.creation_time %}
<li class="list-group-item d-flex justify-content-between align-items-center">
<strong title="{{_("Created on")}}"><i class="fa fa-fw fa-plus-circle"></i> {{_("Created on")}}</strong>
{{ user.creation_time|dateformat }}
</li>
{% endif %}
{% if user.pronouns %}
<li class="list-group-item d-flex justify-content-between">
<strong title="{{_('Pronouns')}}">
Expand Down Expand Up @@ -126,12 +132,6 @@ <h5 class="mb-3" id="user_mail"><a href="mailto:{{ user.mail }}">{{ user.mail }}
</li>
{% endif %}
{{ userlinks() if userlinks is defined }}
{% if user.creation_time %}
<li class="list-group-item d-flex justify-content-between align-items-center">
<strong title="{{_("Created On")}}"><i class="fa fa-fw fa-plus-circle"></i> {{_("Created On")}}</strong>
{{ user.creation_time|dateformat }}
</li>
{% endif %}
</ul>
</div>
<div class="col-md-8">
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/controller/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,4 +712,4 @@ def test_user_private(client, logged_in_dummy_user, make_user):
assert user_attributes is not None
assert len(user_attributes.find_all("li")) == 1
attr = user_attributes.select_one("li").select_one("strong")
assert attr["title"] == "Created On"
assert attr["title"] == "Created on"

0 comments on commit 0995a83

Please sign in to comment.