Move search result count logic out of translations

Also fixes a problem pointed out by @Evolena whereby the advanced
search counts hadn’t been adjusted to remove `$:/temp/advancedsearch`
from the search.
This commit is contained in:
Jermolene
2014-10-21 20:27:42 +01:00
parent 53d834c86b
commit ddc7495542
13 changed files with 52 additions and 34 deletions
+4
View File
@@ -13,6 +13,8 @@ caption: {{$:/language/Search/System/Caption}}
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
<$set name="resultCount" value="""<$count filter="[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]"/>""">
<div class="tc-search-results">
<<lingo System/Matches>>
@@ -21,6 +23,8 @@ caption: {{$:/language/Search/System/Caption}}
</div>
</$set>
</$reveal>
<$reveal state="$:/temp/advancedsearch" type="match" text="">