2010-10-10 19:18:42 -07:00
|
|
|
- if @items
|
2012-12-29 23:40:30 -08:00
|
|
|
- title t('.title_with_query', :query => @query)
|
2010-10-10 19:18:42 -07:00
|
|
|
- if @items.empty?
|
2012-12-29 23:40:30 -08:00
|
|
|
%p= t '.no_results_html', :query_html => content_tag(:strong, @query)
|
|
|
|
%p= t '.modeling_request_html',
|
|
|
|
:modeling_link => link_to(t('.modeling_link_content'), root_path)
|
2010-05-15 15:39:41 -07:00
|
|
|
- else
|
2010-10-10 19:18:42 -07:00
|
|
|
= will_paginate @items
|
|
|
|
= render @items
|
|
|
|
= will_paginate @items
|
2010-06-08 07:39:23 -07:00
|
|
|
- else
|
2011-08-04 07:01:44 -07:00
|
|
|
#search-info
|
2012-12-29 23:40:30 -08:00
|
|
|
- localized_cache :action_suffix => 'search_help' do
|
2012-08-09 19:35:30 -07:00
|
|
|
#search-help
|
2012-12-29 23:40:30 -08:00
|
|
|
%h2= t '.search_help_header'
|
2012-08-09 19:35:30 -07:00
|
|
|
%dl
|
2012-12-29 23:40:30 -08:00
|
|
|
%dt= t '.basic_example_query'
|
|
|
|
%dd= t '.basic_example_description'
|
|
|
|
%dt= t '.user_items_example_query'
|
2012-08-09 19:35:30 -07:00
|
|
|
%dd
|
2012-12-29 23:40:30 -08:00
|
|
|
= t '.user_items_example_description_html',
|
|
|
|
:user_items_link => link_to(t('.user_items_example_link_content'),
|
|
|
|
your_items_path)
|
|
|
|
%dt= t '.nc_example_query'
|
|
|
|
%dd= t '.nc_example_description'
|
|
|
|
%dt= t '.pb_example_query'
|
|
|
|
%dd= t '.pb_example_description'
|
|
|
|
%dt= t '.species_example_query'
|
|
|
|
%dd= t '.species_example_description'
|
|
|
|
%dt= t '.type_example_query'
|
|
|
|
%dd= t '.type_example_description'
|
2011-08-04 07:01:44 -07:00
|
|
|
|
2012-12-29 23:40:30 -08:00
|
|
|
- localized_cache 'items#index newest_items' do
|
2012-08-09 19:35:30 -07:00
|
|
|
#search-new-items
|
2012-12-29 23:40:30 -08:00
|
|
|
%h2= t '.newest_items_header'
|
2012-08-09 19:35:30 -07:00
|
|
|
= render @newest_items
|
2011-05-13 05:07:20 -07:00
|
|
|
|
2012-12-29 23:40:30 -08:00
|
|
|
- localized_cache :action_suffix => 'species_search_links' do
|
2012-08-09 19:35:30 -07:00
|
|
|
#species-search-links
|
2012-12-29 23:40:30 -08:00
|
|
|
%h2= t '.species_search_header'
|
2012-08-09 19:35:30 -07:00
|
|
|
= standard_species_search_links
|
2011-05-13 05:07:20 -07:00
|
|
|
|