-
-
-
{{i18n 'admin.dashboard.installed_version'}}
-
{{dash-if-empty versionCheck.installed_version}}
- {{#if versionCheck.gitLink}}
-
- {{/if}}
-
-
- {{#if versionCheck.noCheckPerformed}}
-
-
{{i18n 'admin.dashboard.latest_version'}}
- —
-
-
-
- {{d-icon "far-frown"}}
-
-
- {{i18n 'admin.dashboard.no_check_performed'}}
-
-
- {{else}}
- {{#if versionCheck.stale_data}}
-
-
{{i18n 'admin.dashboard.latest_version'}}
- {{#if versionCheck.version_check_pending}}{{dash-if-empty versionCheck.installed_version}}{{/if}}
-
-
-
- {{#if versionCheck.version_check_pending}}
- {{d-icon "far-smile"}}
- {{else}}
- {{d-icon "far-frown"}}
- {{/if}}
-
-
-
- {{#if versionCheck.version_check_pending}}
- {{i18n 'admin.dashboard.version_check_pending'}}
- {{else}}
- {{i18n 'admin.dashboard.stale_data'}}
- {{/if}}
-
-
-
- {{else}}
-
-
{{i18n 'admin.dashboard.latest_version'}}
- {{dash-if-empty versionCheck.latest_version}}
-
-
-
- {{#if versionCheck.upToDate }}
- {{d-icon "far-smile"}}
- {{else}}
-
- {{#if versionCheck.behindByOneVersion}}
- {{d-icon "meh-o"}}
- {{else}}
- {{d-icon "far-frown"}}
- {{/if}}
-
- {{/if}}
-
-
- {{#if versionCheck.upToDate }}
- {{i18n 'admin.dashboard.up_to_date'}}
- {{else}}
- {{i18n 'admin.dashboard.critical_available'}}
- {{i18n 'admin.dashboard.updates_available'}}
- {{i18n 'admin.dashboard.please_upgrade'}}
- {{/if}}
-
-
-
- {{/if}}
- {{/if}}
-
- {{custom-html name="upgrade-header" versionCheck=versionCheck tagName="div" classNames="upgrade-header"}}
-
-
diff --git a/app/assets/javascripts/discourse/templates/components/selected-posts.hbs b/app/assets/javascripts/discourse/templates/components/selected-posts.hbs
new file mode 100644
index 00000000000..5221b77e1f4
--- /dev/null
+++ b/app/assets/javascripts/discourse/templates/components/selected-posts.hbs
@@ -0,0 +1,61 @@
+
+ {{count-i18n key="topic.multi_select.description" count=selectedPostsCount}}
+
+
+{{#if canSelectAll}}
+
- {{partial "selected-posts"}}
+ {{selected-posts
+ selectedPostsCount=selectedPostsCount
+ canSelectAll=canSelectAll
+ canDeselectAll=canDeselectAll
+ canDeleteSelected=canDeleteSelected
+ canMergeTopic=canMergeTopic
+ canChangeOwner=canChangeOwner
+ canMergePosts=canMergePosts
+ toggleMultiSelect=(action "toggleMultiSelect")
+ mergePosts=(action "mergePosts")
+ deleteSelected=(action "deleteSelected")
+ deselectAll=(action "deselectAll")
+ selectAll=(action "selectAll")
+ }}
{{#topic-navigation topic=model jumpToDate=(action "jumpToDate") jumpToIndex=(action "jumpToIndex") as |info|}}
@@ -327,7 +340,20 @@
{{#if showSelectedPostsAtBottom}}
- {{partial "selected-posts"}}
+ {{selected-posts
+ selectedPostsCount=selectedPostsCount
+ canSelectAll=canSelectAll
+ canDeselectAll=canDeselectAll
+ canDeleteSelected=canDeleteSelected
+ canMergeTopic=canMergeTopic
+ canChangeOwner=canChangeOwner
+ canMergePosts=canMergePosts
+ toggleMultiSelect=(action "toggleMultiSelect")
+ mergePosts=(action "mergePosts")
+ deleteSelected=(action "deleteSelected")
+ deselectAll=(action "deselectAll")
+ selectAll=(action "selectAll")
+ }}
{{/if}}