Changesets can be listed by changeset number.
The Git repository is here.
Changeset 153
Produce a message indicating no search results if an unsuccessful
search is made, rather than just returning a blank search page as
if no search had been conducted. Fixes Ticket #89.
- Comitted by: adh
- Date: Friday December 01 15:48:03 2006 (over 18 years ago)
Affected files:
rool/rails/collaboa/trunk/app/views/search/index.rhtml:
prev. | current | |
</table> | ||
<%= end_form_tag -%> | ||
24 | | |
25 | | |
26 | | |
27 | | |
28 | | |
29 | | |
30 | | |
31 | | |
32 | | |
24 | <% if (@found_items.size > 0) -%> | |
25 | <% records = 0 -%> | |
26 | <% @found_items.each do |items| -%> | |
27 | <p /> | |
28 | <% items.each do |item| -%> | |
29 | <div class="search-result"> | |
30 | <h1><%= link_to item[:title], item[:link] -%></h1> | |
31 | <p> | |
32 | <%= hilight_search_terms(simple_format(item[:content]), @params["q"]) %> | |
33 | </p> | |
34 | </div> | |
35 | <% records += 1 -%> | |
36 | <% end -%> | |
37 | <% end -%> | |
38 | <% if (records == 0) -%> | |
39 | <p /> | |
40 | <div class="search-result"> | |
41 | <h1>Sorry, your search returned no results.</h1> | |
42 | </div> | |
43 | <% end -%> | |
<% end -%> | ||
34 | | |
</div> | ||