2023-04-17 17:25:52 +03:00
|
|
|
{{!-- template-lint-disable no-invalid-interactive --}}
|
2023-04-17 18:40:32 +03:00
|
|
|
<div class="gh-post-history">
|
|
|
|
<div class="gh-post-history-main">
|
2023-04-18 16:32:01 +03:00
|
|
|
{{#if this.diffHtml}}
|
|
|
|
{{{this.diffHtml}}}
|
|
|
|
{{else}}
|
|
|
|
Loading...
|
|
|
|
{{/if}}
|
|
|
|
<div class="gh-post-history-hidden-lexical previous">
|
|
|
|
<div class="gh-editor-title">{{this.previousTitle}}</div>
|
|
|
|
<KoenigLexicalEditor @lexical={{this.previousLexical}} @cardConfig={{this.cardConfig}} />
|
|
|
|
</div>
|
|
|
|
<div class="gh-post-history-hidden-lexical current">
|
|
|
|
<div class="gh-editor-title">{{this.currentTitle}}</div>
|
|
|
|
<KoenigLexicalEditor @lexical={{this.currentLexical}} @cardConfig={{this.cardConfig}}/>
|
|
|
|
</div>
|
2023-04-17 17:25:52 +03:00
|
|
|
</div>
|
2023-04-18 14:10:51 +03:00
|
|
|
<div class="settings-menu-container">
|
|
|
|
<div class="settings-menu settings-menu-pane settings-menu-pane-main">
|
|
|
|
<div class="settings-menu-header subview">
|
|
|
|
<button
|
|
|
|
aria-label="Close meta data panel"
|
|
|
|
class="back settings-menu-header-action"
|
|
|
|
data-test-button="close-psm-subview"
|
|
|
|
type="button" {{action "closeModal"}}
|
|
|
|
{{on "mousedown" (optional this.noop)}}
|
|
|
|
>
|
|
|
|
{{svg-jar "arrow-left"}}
|
|
|
|
<span class="hidden">Back</span>
|
|
|
|
</button>
|
|
|
|
<h4>Post history</h4>
|
|
|
|
</div>
|
|
|
|
<div class="settings-menu-content">
|
|
|
|
<ul class="nav-list">
|
2023-04-18 18:17:06 +03:00
|
|
|
{{#each this.revisionList as |revision|}}
|
2023-04-18 14:10:51 +03:00
|
|
|
<li class="nav-list-item">
|
|
|
|
<button type="button">
|
2023-04-18 16:28:21 +03:00
|
|
|
<div class="flex items-center">
|
2023-04-18 18:10:41 +03:00
|
|
|
<span class="gh-post-history-version">{{moment-from-now revision.createdAt}}</span>
|
2023-04-18 16:28:21 +03:00
|
|
|
<span class="gh-post-history-version-wordcount">
|
|
|
|
<span class="added">+275</span>
|
|
|
|
<span class="subtracted">-73</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
2023-04-18 18:10:41 +03:00
|
|
|
<span class="gh-post-history-version-meta">{{revision.author.name}}</span>
|
2023-04-18 14:10:51 +03:00
|
|
|
</button>
|
|
|
|
</li>
|
2023-04-18 18:10:41 +03:00
|
|
|
{{/each}}
|
2023-04-18 14:10:51 +03:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-17 17:25:52 +03:00
|
|
|
</div>
|