<xf:title>{{ phrase('phrase_search_results:') }} {$language.title}</xf:title>

<div class="block">
	<div class="block-outer">
		<xf:macro id="filter_macros::quick_filter" arg-class="block-outer-opposite" />
	</div>
	<div class="block-container">
		<xf:macro id="filter_macros::filter_bar"
			arg-route="phrases/search"
			arg-params="{$linkParams}"
			arg-displayValues="{$filterDisplay}"
			arg-phrases="{{ {
				'key:addon_id':  phrase('add_on:'),
				'key:title':     phrase('title_contains:'),
				'key:text':      phrase('text_contains:'),
				'key:text_cs':   phrase('case_sensitive'),
				'key:state':     phrase('phrase_status:'),
				'val:_none':     phrase('none'),
				'val:default':   phrase('unmodified'),
				'val:inherited': phrase('modified_in_parent_language'),
				'val:custom':    phrase('modified_in_this_language')
			} }}"
			arg-menu="phrases/refine-search"
			arg-menuTitle="{{ phrase('refine_and_translate') }}" />


		<xf:if is="$phrases is not empty">
			<div class="block-body">
				<xf:datalist>
					<xf:macro id="phrase_list::phrase_list" arg-phrases="{$phrases}" arg-language="{$language}" />
					<xf:if is="$total > count($phrases)">
						<xf:datarow rowclass="dataList-row--note dataList-row--noHover">
							<xf:cell colspan="2">{{ phrase('more_records_matching_filter_more_specific') }}</xf:cell>
						</xf:datarow>
					</xf:if>
				</xf:datalist>
			</div>
			<div class="block-footer">
				<span class="block-footer-counter">{{ display_totals(count($phrases), $total) }}</span>
			</div>
		<xf:else />
			<div class="block-body block-row">{{ phrase('no_results_found') }}</div>
		</xf:if>
	</div>
</div>