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

Version Path
rocket_cms-0.9.1 app/views/search/index.html.haml
rocket_cms-0.8.13 app/views/search/index.html.haml
rocket_cms-0.8.12 app/views/search/index.html.haml
rocket_cms-0.8.11 app/views/search/index.html.haml
rocket_cms-0.8.10 app/views/search/index.html.haml
rocket_cms-0.8.9 app/views/search/index.html.haml
rocket_cms-0.8.8 app/views/search/index.html.haml
rocket_cms-0.8.7 app/views/search/index.html.haml
rocket_cms-0.8.6 app/views/search/index.html.haml
rocket_cms-0.8.5 app/views/search/index.html.haml
rocket_cms-0.8.4 app/views/search/index.html.haml
rocket_cms-0.8.3 app/views/search/index.html.haml
rocket_cms-0.8.1 app/views/search/index.html.haml
rocket_cms-0.8.0 app/views/search/index.html.haml
rocket_cms-0.8.0.pre.6 app/views/search/index.html.haml
rocket_cms-0.8.0.pre.5 app/views/search/index.html.haml
rocket_cms-0.8.0.pre.4 app/views/search/index.html.haml
rocket_cms-0.8.0.pre.3 app/views/search/index.html.haml
rocket_cms-0.8.0.pre.2 app/views/search/index.html.haml
rocket_cms-0.8.0.pre.1 app/views/search/index.html.haml