From 31dadc83734e651cbfe0aac9d2fe654f730fc4f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20David=20Mart=C3=ADnez=20Cubillos?= Date: Mon, 2 Dec 2024 13:07:27 -0500 Subject: [PATCH] DEV: Add plugin wrappers required to fix template overrides (#29825) * DEV: Add plugin wrappers required to fix tempalte overrides * updated search-result-entry file * activity file unintended changes fixed --- .../app/components/search-result-entry.hbs | 77 ++++++---- .../discourse/app/templates/user/activity.hbs | 140 +++++++++--------- 2 files changed, 117 insertions(+), 100 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/search-result-entry.hbs b/app/assets/javascripts/discourse/app/components/search-result-entry.hbs index 735d72f6541..af53b82109d 100644 --- a/app/assets/javascripts/discourse/app/components/search-result-entry.hbs +++ b/app/assets/javascripts/discourse/app/components/search-result-entry.hbs @@ -1,11 +1,18 @@ -
- - {{avatar this.post imageSize="large"}} - -
+ + + +
+ {{#if this.bulkSelectEnabled}}
-
- - {{format-date this.post.created_at format="tiny"}} - {{#if this.post.blurb}} - - - {{/if}} - - - {{#if this.post.blurb}} - {{#if this.siteSettings.use_pg_headlines_for_excerpt}} - {{html-safe this.post.blurb}} - {{else}} - - {{html-safe this.post.blurb}} - - {{/if}} - {{/if}} -
- - {{#if this.showLikeCount}} - {{#if this.post.like_count}} -
\ No newline at end of file diff --git a/app/assets/javascripts/discourse/app/templates/user/activity.hbs b/app/assets/javascripts/discourse/app/templates/user/activity.hbs index dcb66a54e34..ae2375d1643 100644 --- a/app/assets/javascripts/discourse/app/templates/user/activity.hbs +++ b/app/assets/javascripts/discourse/app/templates/user/activity.hbs @@ -1,95 +1,95 @@ {{body-class "user-activity-page"}} - -
- - - {{d-icon "bars-staggered"}} - {{i18n "user.filters.all"}} - - - - {{d-icon "list-ul"}} - {{i18n "user_action_groups.4"}} - - - {{d-icon "reply"}} - {{i18n "user_action_groups.5"}} - - - {{#if this.user.showRead}} + +
+ - {{d-icon "clock-rotate-left"}} - {{i18n "user.read"}} + {{d-icon "bars-staggered"}} + {{i18n "user.filters.all"}} - {{/if}} - {{#if this.user.showDrafts}} - {{d-icon "pencil"}} - {{this.draftLabel}} + {{d-icon "list-ul"}} + {{i18n "user_action_groups.4"}} - {{/if}} - - {{#if (gt this.model.pending_posts_count 0)}} - {{d-icon "clock"}} - {{this.pendingLabel}} + {{d-icon "reply"}} + {{i18n "user_action_groups.5"}} - {{/if}} - - {{d-icon "heart"}} - {{i18n "user_action_groups.1"}} - + {{#if this.user.showRead}} + + {{d-icon "clock-rotate-left"}} + {{i18n "user.read"}} + + {{/if}} + + {{#if this.user.showDrafts}} + + {{d-icon "pencil"}} + {{this.draftLabel}} + + {{/if}} + + {{#if (gt this.model.pending_posts_count 0)}} + + {{d-icon "clock"}} + {{this.pendingLabel}} + + {{/if}} - {{#if this.user.showBookmarks}} - {{d-icon "bookmark"}} - {{i18n "user_action_groups.3"}} + {{d-icon "heart"}} + {{i18n "user_action_groups.1"}} - {{/if}} - - -
+ {{#if this.user.showBookmarks}} + + {{d-icon "bookmark"}} + {{i18n "user_action_groups.3"}} + + {{/if}} + +
+
+
{{outlet}}
\ No newline at end of file