Sha256: ed77a9a6d69126a4091f2fe74616a1ecbd37168f8431f3739fe510d94102f8e9

Contents?: true

Size: 809 Bytes

Versions: 9

Compression:

Stored size: 809 Bytes

Contents

.enjoy-search-results
  h1 Результаты поиска
  = form_tag enjoy_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
    .enjoy-search-no-results К сожалению, ничего не найдено

  = paginate @results if any

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
enjoy_cms-0.3.7.4 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.7.3 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.7.2 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.7.1 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.7 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.6.2 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.6.1 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.6 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.5 app/views/enjoy/search/index.html.slim