mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
cb644b3fd7
refs. https://github.com/TryGhost/Toolbox/issues/356 - renamed page to “History” now to make it less technical - moved the history page out to the Advanced section in Settings to increase discoverability - moved the About section from General settings to a modal because that technical data was not connected to General settings
47 lines
2.0 KiB
Handlebars
47 lines
2.0 KiB
Handlebars
<section class="gh-canvas gh-members-activity">
|
|
<GhCanvasHeader class="gh-canvas-header">
|
|
<h2 class="gh-canvas-title" data-test-screen-title>
|
|
<LinkTo @route="settings">Settings</LinkTo>
|
|
<span>{{svg-jar "arrow-right"}}</span>
|
|
<LinkTo @route="settings.audit-log" @query={{reset-query-params "settings.audit-log"}} data-test-link="audit-log-back">History</LinkTo>
|
|
{{#if this.userRecord}}
|
|
<span>{{svg-jar "arrow-right"}}</span>
|
|
<span class="truncate">{{or this.userRecord.name this.userRecord.email}}</span>
|
|
{{/if}}
|
|
</h2>
|
|
<div class="view-actions">
|
|
<Settings::AuditLog::EventFilter
|
|
@excludedEvents={{this.excludedEvents}}
|
|
@excludedResources={{this.excludedResources}}
|
|
@onChange={{this.changeExcludedItems}} />
|
|
|
|
<Settings::AuditLog::Search
|
|
@selected={{this.userRecord}}
|
|
@onChange={{this.changeUser}} />
|
|
</div>
|
|
</GhCanvasHeader>
|
|
<div class="view-container">
|
|
{{#let (audit-log-event-fetcher filter=(audit-log-event-filter excludedEvents=this.fullExcludedEvents excludedResources=this.fullExcludedResources user=this.user) pageSize=50) as |eventsFetcher|}}
|
|
{{#if eventsFetcher.data}}
|
|
<div class="gh-list-scrolling">
|
|
<Settings::AuditLog::Table @events={{eventsFetcher.data}} />
|
|
|
|
{{#if (not (or eventsFetcher.isLoading eventsFetcher.hasReachedEnd))}}
|
|
<GhScrollTrigger @enter={{eventsFetcher.loadNextPage}} @triggerOffset={{250}} />
|
|
{{/if}}
|
|
</div>
|
|
{{else}}
|
|
{{#unless eventsFetcher.isLoading}}
|
|
<Settings::AuditLog::NoEvents @filter={{or this.user this.excludedResources}} />
|
|
{{/unless}}
|
|
{{/if}}
|
|
|
|
{{#if eventsFetcher.isLoading}}
|
|
<div class="no-posts-box"><GhLoadingSpinner /></div>
|
|
{{/if}}
|
|
{{/let}}
|
|
</div>
|
|
</section>
|
|
|
|
{{outlet}}
|