DEV: Add PluginOutlet on full page search container and filter
This commit is contained in:
parent
5936f54521
commit
5112525865
|
@ -5,6 +5,17 @@
|
||||||
{{body-class "search-page"}}
|
{{body-class "search-page"}}
|
||||||
|
|
||||||
<section class="search-container">
|
<section class="search-container">
|
||||||
|
<PluginOutlet
|
||||||
|
@name="full-page-search-above-search-header"
|
||||||
|
@connectorTagName="div"
|
||||||
|
@outletArgs={{hash
|
||||||
|
search=this.searchTerm
|
||||||
|
type=this.search_type
|
||||||
|
model=this.model
|
||||||
|
addSearchResults=this.addSearchResults
|
||||||
|
sortOrder=this.sortOrder
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<div class="search-header" role="search">
|
<div class="search-header" role="search">
|
||||||
<h1 class="search-page-heading">
|
<h1 class="search-page-heading">
|
||||||
{{#if this.hasResults}}
|
{{#if this.hasResults}}
|
||||||
|
@ -56,13 +67,26 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="search-filters">
|
<div class="search-filters">
|
||||||
<SearchAdvancedOptions
|
<PluginOutlet @name="full-page-search-search-filters"
|
||||||
@searchTerm={{readonly this.searchTerm}}
|
@outletArgs={{hash
|
||||||
@onChangeSearchTerm={{fn (mut this.searchTerm)}}
|
searchTerm=(readonly this.searchTerm)
|
||||||
@search={{action "search" (hash collapseFilters=true)}}
|
onChangeSearchTerm=(fn (mut this.searchTerm))
|
||||||
@searchButtonDisabled={{this.searchButtonDisabled}}
|
search=(action "search" (hash collapseFilters=true))
|
||||||
@expandFilters={{this.expandFilters}}
|
searchButtonDisabled=this.searchButtonDisabled
|
||||||
/>
|
expandFilters=this.expandFilters
|
||||||
|
sortOrder=this.sortOrder
|
||||||
|
sortOrderOptions=this.sortOrders
|
||||||
|
setSortOrder=this.setSortOrder
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<SearchAdvancedOptions
|
||||||
|
@searchTerm={{readonly this.searchTerm}}
|
||||||
|
@onChangeSearchTerm={{fn (mut this.searchTerm)}}
|
||||||
|
@search={{action "search" (hash collapseFilters=true)}}
|
||||||
|
@searchButtonDisabled={{this.searchButtonDisabled}}
|
||||||
|
@expandFilters={{this.expandFilters}}
|
||||||
|
/>
|
||||||
|
</PluginOutlet>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,6 @@ class WebHookEventType < ActiveRecord::Base
|
||||||
user_promoted: 13,
|
user_promoted: 13,
|
||||||
voting: 14,
|
voting: 14,
|
||||||
chat: 15,
|
chat: 15,
|
||||||
custom: 16,
|
|
||||||
},
|
},
|
||||||
scopes: false
|
scopes: false
|
||||||
|
|
||||||
|
@ -87,8 +86,6 @@ class WebHookEventType < ActiveRecord::Base
|
||||||
chat_message_edited: 1802,
|
chat_message_edited: 1802,
|
||||||
chat_message_trashed: 1803,
|
chat_message_trashed: 1803,
|
||||||
chat_message_restored: 1804,
|
chat_message_restored: 1804,
|
||||||
category_experts_approved: 1901,
|
|
||||||
category_experts_unapproved: 1902,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
has_and_belongs_to_many :web_hooks
|
has_and_belongs_to_many :web_hooks
|
||||||
|
@ -120,11 +117,6 @@ class WebHookEventType < ActiveRecord::Base
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
unless defined?(SiteSetting.enable_category_experts) && SiteSetting.enable_category_experts
|
|
||||||
ids_to_exclude.concat(
|
|
||||||
[TYPES[:category_experts_approved], TYPES[:category_experts_unapproved]],
|
|
||||||
)
|
|
||||||
end
|
|
||||||
self.where.not(id: ids_to_exclude)
|
self.where.not(id: ids_to_exclude)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -33,10 +33,6 @@ en:
|
||||||
chat_messages_count: "Chat messages"
|
chat_messages_count: "Chat messages"
|
||||||
chat_channels_count: "Chat channels"
|
chat_channels_count: "Chat channels"
|
||||||
chat_users_count: "Chat users"
|
chat_users_count: "Chat users"
|
||||||
activities:
|
|
||||||
chat_messages:
|
|
||||||
one: "%{formatted_number} chat message"
|
|
||||||
other: "%{formatted_number} chat messages"
|
|
||||||
|
|
||||||
chat:
|
chat:
|
||||||
text_copied: Text copied to clipboard
|
text_copied: Text copied to clipboard
|
||||||
|
|
Loading…
Reference in New Issue