Skip to content

Commit

Permalink
Datetime based users sorting (#634)
Browse files Browse the repository at this point in the history
* added dot to the flexmeasures config file name

* sort users based on last-seen or last-login by datetime

Signed-off-by: Ahmad <ahmedwahid16101@gmail.com>

* revert back

* removed dot

* sort users based on last-seen or last-login in the users page by datetime

Signed-off-by: Ahmad <ahmedwahid16101@gmail.com>

* user in user.html doesn't need to be sorted

Signed-off-by: Ahmad <ahmedwahid16101@gmail.com>

---------

Signed-off-by: Ahmad <ahmedwahid16101@gmail.com>
  • Loading branch information
Ahmad-Wahid committed Apr 12, 2023
1 parent f30e303 commit 042727f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flexmeasures/ui/templates/crud/users.html
Expand Up @@ -52,10 +52,10 @@ <h3>All {% if not include_inactive %}active {% endif %}users</h3>
<td>
{{ user.timezone }}
</td>
<td title="{{ user.last_login_at | localized_datetime }}">
<td title="{{ user.last_login_at | localized_datetime }}" data-sort="{{ user.last_login_at }}">
{{ user.last_login_at | naturalized_datetime}}
</td>
<td title="{{ user.last_seen_at | localized_datetime }}">
<td title="{{ user.last_seen_at | localized_datetime }}" data-sort="{{ user.last_seen_at }}">
{{ user.last_seen_at | naturalized_datetime}}
</td>
<td>
Expand Down

0 comments on commit 042727f

Please sign in to comment.