From b2bb6a3790609d49a9f9bdb2c131955415748ee5 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 24 Jun 2020 09:27:45 +0100 Subject: [PATCH] FIX: Update directory header to match core This updates the parameters passed to the period-chooser, and makes sure the date displays as expected --- javascripts/discourse/templates/users.hbs | 36 ++++++++++++++--------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/javascripts/discourse/templates/users.hbs b/javascripts/discourse/templates/users.hbs index 98f2490..271f9df 100644 --- a/javascripts/discourse/templates/users.hbs +++ b/javascripts/discourse/templates/users.hbs @@ -1,22 +1,30 @@ {{#d-section pageClass="users"}} {{#load-more selector=".user-card-directory .user-card-container" action=(action "loadMore")}}
-
+
{{plugin-outlet name="users-top" connectorTagName='div' args=(hash model=model)}} -
- {{period-chooser period=period onChange=(action (mut period))}} -
-
- - {{combo-box content=availableGroups - value=group - options=(hash clearable=true none=(theme-prefix 'filter_by_group')) - valueAttribute="value"}} - - - {{text-field value=nameInput placeholderKey="directory.filter_name" class="filter-name no-blur"}} - +
+
+ {{period-chooser period=period onChange=(action (mut period)) fullDay=false}} + {{#if lastUpdatedAt}} +
+ {{i18n "directory.last_updated"}} + {{lastUpdatedAt}} +
+ {{/if}} +
+
+ + {{combo-box content=availableGroups + value=group + options=(hash clearable=true none=(theme-prefix 'filter_by_group')) + valueAttribute="value"}} + + + {{text-field value=nameInput placeholderKey="directory.filter_name" class="filter-name no-blur"}} + +
{{#conditional-loading-spinner condition=model.loading}}