(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:
pginer
2012-07-25 16:00:05 +02:00
committed by Santhosh Thottingal
parent 08c14dafa4
commit 5b055bdf5b
7 changed files with 131 additions and 34 deletions

View File

@@ -101,8 +101,23 @@
</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">Esapnol</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>
</div>
</div>
</body>
</html>

View File

@@ -17,4 +17,4 @@ span.uls-trigger {
span.uls-trigger a {
color: #FFFFFF;
font-weight: bold;
}
}