Skip to content

Commit 0995a83

Browse files
justwheelabompard
authored andcommitted
💄 User template: Move account creation date up in the profile
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]>
1 parent 1a9c97c commit 0995a83

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

noggin/templates/user.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ <h5 class="mb-3" id="user_mail"><a href="mailto:{{ user.mail }}">{{ user.mail }}
1818
{% endif %}
1919
</div>
2020
<ul class="list-group list-group-flush" id="user_attributes">
21+
{% if user.creation_time %}
22+
<li class="list-group-item d-flex justify-content-between align-items-center">
23+
<strong title="{{_("Created on")}}"><i class="fa fa-fw fa-plus-circle"></i> {{_("Created on")}}</strong>
24+
{{ user.creation_time|dateformat }}
25+
</li>
26+
{% endif %}
2127
{% if user.pronouns %}
2228
<li class="list-group-item d-flex justify-content-between">
2329
<strong title="{{_('Pronouns')}}">
@@ -126,12 +132,6 @@ <h5 class="mb-3" id="user_mail"><a href="mailto:{{ user.mail }}">{{ user.mail }}
126132
</li>
127133
{% endif %}
128134
{{ userlinks() if userlinks is defined }}
129-
{% if user.creation_time %}
130-
<li class="list-group-item d-flex justify-content-between align-items-center">
131-
<strong title="{{_("Created On")}}"><i class="fa fa-fw fa-plus-circle"></i> {{_("Created On")}}</strong>
132-
{{ user.creation_time|dateformat }}
133-
</li>
134-
{% endif %}
135135
</ul>
136136
</div>
137137
<div class="col-md-8">

tests/unit/controller/test_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,4 +712,4 @@ def test_user_private(client, logged_in_dummy_user, make_user):
712712
assert user_attributes is not None
713713
assert len(user_attributes.find_all("li")) == 1
714714
attr = user_attributes.select_one("li").select_one("strong")
715-
assert attr["title"] == "Created On"
715+
assert attr["title"] == "Created on"

0 commit comments

Comments
 (0)