diff --git a/templates/partials/search-results.tpl b/templates/partials/search-results.tpl new file mode 100644 index 0000000..9b45755 --- /dev/null +++ b/templates/partials/search-results.tpl @@ -0,0 +1,50 @@ +
+ +
[[search:results_matching, {matchCount}, {search_query}, {time}]]
+ + +
[[search:no-matches]]
+ + + + {{{each posts}}} +
+
+ {buildAvatar(posts.user, "sm", true)} + {posts.topic.title} +
+ +
+ {posts.content} +

+
+ + + +
+
+ {{{end}}} + + + + + + + + + + {{{ if categories.length }}} + + {{{ end }}} + + +
\ No newline at end of file diff --git a/templates/search.tpl b/templates/search.tpl index c3f72e0..c4aaeb5 100644 --- a/templates/search.tpl +++ b/templates/search.tpl @@ -168,55 +168,6 @@
-
- -
[[search:results_matching, {matchCount}, {search_query}, {time}]]
- - -
[[search:no-matches]]
- - - - {{{each posts}}} -
-
- {buildAvatar(posts.user, "sm", true)} - {posts.topic.title} -
- -
- {posts.content} -

-
- - - -
-
- {{{end}}} - - - - - - - - - - {{{ if categories.length }}} - - {{{ end }}} - - -
+