Sha256: e6f60da87b7652863dba141d3b4a61307dd6f5ccebb07a16db4ac5c7aa515427

Contents?: true

Size: 809 Bytes

Versions: 17

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

17 entries across 17 versions & 1 rubygems

Version Path
enjoy_cms-0.3.3 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.2.1 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.2 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.1.2 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.1.1 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.1 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.0.4 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.0.3 app/views/enjoy/search/index.html.slim
enjoy_cms-0.3.0.2 app/views/enjoy/search/index.html.slim
enjoy_cms-0.2.1 app/views/enjoy/search/index.html.slim
enjoy_cms-0.2.0.3.2 app/views/enjoy/search/index.html.slim
enjoy_cms-0.2.0.3.1 app/views/enjoy/search/index.html.slim
enjoy_cms-0.2.0.3 app/views/enjoy/search/index.html.slim
enjoy_cms-0.2.0.2 app/views/enjoy/search/index.html.slim
enjoy_cms-0.2.0.1.beta app/views/enjoy/search/index.html.slim
enjoy_cms-0.2.0.beta app/views/enjoy/search/index.html.slim
enjoy_cms-0.1.0.beta1 app/views/enjoy/search/index.html.slim