1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/items/index.html.haml

42 lines
1.5 KiB
Text

- if @items
- title t('.title_with_query', :query => @query)
- if @items.empty?
%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)
- else
= will_paginate @items
= render @items
= will_paginate @items
- else
#search-info
- localized_cache :action_suffix => 'search_help' do
#search-help
%h2= t '.search_help_header'
%dl
%dt= t '.basic_example_query'
%dd= t '.basic_example_description'
%dt= t '.user_items_example_query'
%dd
= 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'
- localized_cache 'items#index newest_items' do
#search-new-items
%h2= t '.newest_items_header'
= render @newest_items
- localized_cache :action_suffix => 'species_search_links' do
#species-search-links
%h2= t '.species_search_header'
= standard_species_search_links