Sha256: 78689d3534f5d3b6e43623d818714161fd20d77b11f37a8b6dfc7be073e8dc0d

Contents?: true

Size: 1.15 KB

Versions: 5

Compression:

Stored size: 1.15 KB

Contents

= render :partial => 'readers/flasher'

#forum
  #search

  - if @searching
    - if @posts.empty?
      %p No messages found.

    - else
      %p
        We found
        = @posts.total_entries
        = @description + ':'

      - if @posts.previous_page
        = paginate_and_summarise @posts, 'posts'

      %ul.main
        = render :partial => 'posts/post', :collection => @posts, :locals => {:with_context => true, :hide_author => false, :preview => true}

      = paginate_and_summarise @posts, 'posts'

  - else
    = render :partial => 'posts/search'

- content_for :breadcrumbs do
  = link_to 'Forum', topics_url
  - if @searching
    \>
    = link_to "Posts", posts_url
    \>
    = @title
  - else
    \>
    Search

- content_for :breadhead do
  - if @searching
    = link_to "Posts", posts_url, :class => 'breadhead'
  - else
    = link_to "Posts", topics_url, :class => 'breadhead'

- content_for :pagetitle do
  - if @searching
    = @title || 'Search results'
  - else
    Search

- content_for :feed do
  = feed_link(search_posts_url(params.merge(:format => :rss))) if @searching

- content_for :controls do
  = render :partial => 'readers/controls'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
radiant-forum-extension-1.1.2 app/views/posts/search.html.haml
radiant-forum-extension-1.1.1 app/views/posts/search.html.haml
radiant-forum-extension-1.1.0 app/views/posts/search.html.haml
radiant-forum-extension-0.6.1 app/views/posts/search.html.haml
radiant-forum-extension-0.6.0 app/views/posts/search.html.haml