Sha256: 3cba7649dbedbef522c1d8bf19dfba2ac627a603aca5e27fe2fd5443509f4414

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 KB

Contents

- packet.add_js("page-list-effects.js", :module => "_sparkles_")
- packet["page.title"] = "Blog"
- is_short ||= false
#blog-list.list-view
  %table.tablesorter
    %thead
      %tr.list-header-group
        %th.list-header.page-listing-expand-collapse
           
        %th.list-header
          Blog Title
        %th.list-header
          Date
        %th.list-header
          Status
        %td.list-header
          Actions
    %tfoot
      %tr
        %td  
        %td  
        %td  
        %td  
        %td
          %a.button.add-button{:href => route_to(model_name, :create)} Add new Post
    %tbody.pages
      - for post in list
        %tr.page-listing-item{:id => "blog-post-#{post.id}"}
          = view_table_row(model_name, :model => post)
  .pager
    %form
      %img.first{:src=>"/assets/_sparkles_/images/tablesorter/first.png"}
      %img.prev{:src=>"/assets/_sparkles_/images/tablesorter/prev.png"}
      %input.pagedisplay{:type => "text"}
      %img.next{:src=>"/assets/_sparkles_/images/tablesorter/next.png"}
      %img.last{:src=>"/assets/_sparkles_/images/tablesorter/last.png"}
      %select.pagesize
        %option{:value => "5", :selected => is_short ? true : false} 5
        %option{:value => "10", :selected => is_short ? false : true} 10
        %option{:value => "25"} 25

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
orange-sparkles-0.7.1 lib/orange-sparkles/views/blog_posts/list.haml
orange-sparkles-0.7.0 lib/orange-sparkles/views/blog_posts/list.haml
orange-sparkles-0.5.9 lib/orange-sparkles/views/blog_posts/list.haml
orange-sparkles-0.5.8 lib/orange-sparkles/views/blog_posts/list.haml
orange-sparkles-0.5.7 lib/orange-sparkles/views/blog_posts/list.haml