mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
Fixed date zero-padding in table views
- when you have a date column in a table, dates with 2 digits vs 1 digit cause the vertical alignment to be all over the place - this commit fixes the date formatting for those entries to be zero-padded
This commit is contained in:
parent
242106d596
commit
1d6fee8aa0
@ -51,7 +51,7 @@
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="gh-dashboard-list-item-sub">
|
||||
<span class="gh-dashboard-list-subtext">{{moment-format (moment-site-tz post.publishedAtUTC) "D MMM YYYY HH:mm"}}</span>
|
||||
<span class="gh-dashboard-list-subtext">{{moment-format (moment-site-tz post.publishedAtUTC) "DD MMM YYYY HH:mm"}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
</LinkTo>
|
||||
@ -105,7 +105,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<div class="gh-dashboard-list-item-sub">
|
||||
<span class="gh-dashboard-list-subtext">{{moment-format parsedEvent.timestamp "D MMM YYYY HH:mm"}}</span>
|
||||
<span class="gh-dashboard-list-subtext">{{moment-format parsedEvent.timestamp "DD MMM YYYY HH:mm"}}</span>
|
||||
</div>
|
||||
</LinkTo>
|
||||
{{/let}}
|
||||
|
@ -20,7 +20,7 @@
|
||||
{{else if (eq @filterColumn 'last_seen_at')}}
|
||||
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
||||
{{#if (not (is-empty @member.lastSeenAtUTC))}}
|
||||
{{moment-format (moment-site-tz @member.lastSeenAtUTC) "D MMM YYYY"}}
|
||||
{{moment-format (moment-site-tz @member.lastSeenAtUTC) "DD MMM YYYY"}}
|
||||
<div class="midlightgrey gh-members-list-subscribed-moment">{{moment-from-now @member.lastSeenAtUTC}}</div>
|
||||
{{else}}
|
||||
<span class="midlightgrey">-</span>
|
||||
@ -75,7 +75,7 @@
|
||||
{{else if (eq @filterColumn 'subscriptions.start_date')}}
|
||||
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
||||
{{#if (not (is-empty this.mostRecentSubscription.start_date))}}
|
||||
{{moment-format (moment-site-tz this.mostRecentSubscription.start_date) "D MMM YYYY"}}
|
||||
{{moment-format (moment-site-tz this.mostRecentSubscription.start_date) "DD MMM YYYY"}}
|
||||
<div class="midlightgrey gh-members-list-subscribed-moment">{{moment-from-now this.mostRecentSubscription.start_date}}</div>
|
||||
{{else}}
|
||||
<span class="midlightgrey">-</span>
|
||||
@ -85,7 +85,7 @@
|
||||
{{else if (eq @filterColumn 'subscriptions.current_period_end')}}
|
||||
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
||||
{{#if (not (is-empty this.mostRecentSubscription.current_period_end))}}
|
||||
{{moment-format (moment-site-tz this.mostRecentSubscription.current_period_end) "D MMM YYYY"}}
|
||||
{{moment-format (moment-site-tz this.mostRecentSubscription.current_period_end) "DD MMM YYYY"}}
|
||||
<div class="midlightgrey gh-members-list-subscribed-moment">{{moment-from-now this.mostRecentSubscription.current_period_end}}</div>
|
||||
{{else}}
|
||||
<span class="midlightgrey">-</span>
|
||||
|
@ -70,7 +70,7 @@
|
||||
|
||||
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data="created-at">
|
||||
{{#if @member.createdAtUTC}}
|
||||
<div>{{moment-format (moment-site-tz @member.createdAtUTC) "D MMM YYYY"}}</div>
|
||||
<div>{{moment-format (moment-site-tz @member.createdAtUTC) "DD MMM YYYY"}}</div>
|
||||
<div class="midlightgrey gh-members-list-subscribed-moment">{{moment-from-now @member.createdAtUTC}}</div>
|
||||
{{/if}}
|
||||
</LinkTo>
|
||||
|
@ -30,6 +30,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gh-list-data">{{moment-format event.timestamp "D MMM YYYY HH:mm"}}</div>
|
||||
<div class="gh-list-data">{{moment-format event.timestamp "DD MMM YYYY HH:mm"}}</div>
|
||||
</tr>
|
||||
{{/let}}
|
||||
|
Loading…
Reference in New Issue
Block a user