FIX: Update directory header to match core

This updates the parameters passed to the period-chooser, and makes sure the date displays as expected
This commit is contained in:
David Taylor 2020-06-24 09:27:45 +01:00
parent 53120661ad
commit b2bb6a3790
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434
1 changed files with 22 additions and 14 deletions

View File

@ -1,11 +1,18 @@
{{#d-section pageClass="users"}}
{{#load-more selector=".user-card-directory .user-card-container" action=(action "loadMore")}}
<div class="container">
<div class='directory'>
<div class="users-directory directory">
{{plugin-outlet name="users-top" connectorTagName='div' args=(hash model=model)}}
<div class="filters">
{{period-chooser period=period onChange=(action (mut period))}}
<div class="directory-controls">
<div class="period-controls">
{{period-chooser period=period onChange=(action (mut period)) fullDay=false}}
{{#if lastUpdatedAt}}
<div class="directory-last-updated">
{{i18n "directory.last_updated"}}
{{lastUpdatedAt}}
</div>
{{/if}}
</div>
<div class="filters">
<span class="group-filter {{if group "active"}}">
@ -18,6 +25,7 @@
{{text-field value=nameInput placeholderKey="directory.filter_name" class="filter-name no-blur"}}
</span>
</div>
</div>
{{#conditional-loading-spinner condition=model.loading}}
{{#if userCards.length}}