impress/app/views/items/index.html.haml

42 lines
1.3 KiB
Text
Raw Normal View History

2010-10-10 19:18:42 -07:00
- if @items
- title t('.title_with_query', :query => @query.to_s)
2010-10-10 19:18:42 -07:00
- if @items.empty?
%p= t '.no_results_html', :query_html => content_tag(:strong, @query.to_s)
%p= twl '.modeling_request', :modeling_link_url => root_path
- 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
#search-help
%h2= t '.search_help_header'
%dl
%dt= t '.examples.basic.query'
%dd= t '.examples.basic.description'
%dt= t '.examples.user_items.query'
%dd
= twl '.examples.user_items.description',
:user_items_link_url => your_items_path
%dt= t '.examples.nc.query'
%dd= t '.examples.nc.description'
%dt= t '.examples.pb.query'
%dd= t '.examples.pb.description'
%dt= t '.examples.species.query'
%dd= t '.examples.species.description'
%dt= t '.examples.type.query'
%dd= t '.examples.type.description'
2011-08-04 07:01:44 -07:00
#search-new-items
%h2= t '.newest_items.header'
= render @newest_items
2011-05-13 05:07:20 -07:00
- cache "items/index species_search_links locale=#{I18n.locale}" do
#species-search-links
%h2= t '.species_search.header'
= standard_species_search_links
2011-05-13 05:07:20 -07:00
- content_for :stylesheets do
= page_stylesheet_link_tag "layouts/items"
= page_stylesheet_link_tag "items/index"