(bug 38670) Provide a no results found view
Provide a view showing: - A feedback message where the current search term is displayed. - Suggested options: based on likely languages and languages with one additional level of editing distance than the used in the search algorithm. - Instructions for search and browse including links to all the sub-regions available. * Introduced success, noresults callbacks for language and region filters * Region filter can be a link for a region alone. Change-Id: I713b62911bb32e1b1427320ced767b144180c5c4
This commit is contained in:
committed by
Santhosh Thottingal
parent
08c14dafa4
commit
5b055bdf5b
@@ -113,6 +113,22 @@ class UniversalLanguageSelectorHooks {
|
||||
</div>
|
||||
</div>
|
||||
<div class='row uls-language-list'></div>
|
||||
<div class='row uls-no-results-view'>
|
||||
<h2 class='ten columns end offset-by-one'>No results found for \"<span id='uls-no-found-search-term'></span>\"</h2>
|
||||
<div id='uls-no-found-more'>
|
||||
<div class='ten columns end offset-by-one'>
|
||||
<p>You can search by language name, script name, ISO code of language or you can browse by region:
|
||||
<a class='uls-region-link' data-region='NA' href='#'>America</a>,
|
||||
<a class='uls-region-link' data-region='EU' href='#'>Europe</a>,
|
||||
<a class='uls-region-link' data-region='ME' href='#'>Middle East</a>,
|
||||
<a class='uls-region-link' data-region='AF' href='#'>Africa</a>,
|
||||
<a class='uls-region-link' data-region='AS' href='#'>Asia</a>,
|
||||
<a class='uls-region-link' data-region='PA' href='#'>Pacific</a> or
|
||||
<a class='uls-region-link' data-region='WW' href='#'>Worldwide languages</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>";
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user