mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Follow up to 8c2fa99f78.
`/search_logs/term?term` is alittle weird looking but unless we add proper slug support to term, we're going to have to live with this first.
This commit is contained in:
@@ -133,7 +133,7 @@ export default function() {
|
||||
{ path: "/search_logs", resetNamespace: true },
|
||||
function() {
|
||||
this.route("index", { path: "/" });
|
||||
this.route("term", { path: "/term/:term" });
|
||||
this.route("term", { path: "/term" });
|
||||
}
|
||||
);
|
||||
this.route(
|
||||
|
||||
@@ -4,6 +4,7 @@ import { translateResults } from "discourse/lib/search";
|
||||
|
||||
export default Discourse.Route.extend({
|
||||
queryParams: {
|
||||
term: { refreshModel: true },
|
||||
period: { refreshModel: true },
|
||||
searchType: { refreshModel: true }
|
||||
},
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
{{#each model as |item|}}
|
||||
<tr class="admin-list-item">
|
||||
<td class="col term">
|
||||
{{#link-to 'adminSearchLogs.term' item.term}}{{item.term}}{{/link-to}}
|
||||
{{#link-to 'adminSearchLogs.term' (query-params term=item.term) class="test"}}
|
||||
{{item.term}}
|
||||
{{/link-to}}
|
||||
</td>
|
||||
<td class="col"><div class="label">{{i18n 'admin.logs.search_logs.searches'}}</div>{{item.searches}}</td>
|
||||
<td class="col"><div class="label">{{i18n 'admin.logs.search_logs.click_through_rate'}}</div>{{item.ctr}}%</td>
|
||||
|
||||
Reference in New Issue
Block a user