Sha256: a534e593f6ad9e7d78f99e7db6b4b6c6e177658097bb4b58becbf7e8e37294f7
Contents?: true
Size: 801 Bytes
Versions: 84
Compression:
Stored size: 801 Bytes
Contents
.rs-search-results %h1 Результаты поиска = form_tag search_path, method: :get, class: 'nav_search' do = text_field_tag 'query', params[:query], placeholder: "Поиск" = submit_tag 'Найти' %ol - any = false - @results.each do |r| - any = true %li .title= link_to (r._highlight.nil? || r._highlight['name'].nil?) ? r.name : r._highlight['name'].join(' ... ').html_safe, url_for(r) .text = raw (r._highlight.nil? || r._highlight['content'].nil?) ? (r.content.blank? ? '' : SmartExcerpt.truncate(r.content)) : r._highlight['content'].join(' ... ') %span.more= link_to '', url_for(r) - unless any .rs-search-no-results К сожалению, ничего не найдено = paginate @results if any
Version data entries
84 entries across 84 versions & 2 rubygems