Sha256: 8a86feb97f85a63bbfb0b81ce1f2d6148c296da0becd5cb7903c26d54bc3ba72

Contents?: true

Size: 973 Bytes

Versions: 8

Compression:

Stored size: 973 Bytes

Contents

.span12
  h1 Posts

  .row
    .span3.new-link
      = link_to 'New Post', crowdblog.new_admin_post_path, :class => "btn btn-primary btn-small"
    .span3.offset6
      ul.nav.nav-pills
        li class="#{@state ? '' : 'active'}"
          = link_to 'All', crowdblog.admin_posts_path
        li class="#{@state == 'published' ? 'active' : ''}"
          = link_to 'Published', crowdblog.admin_posts_by_state_path('published')
        li class="#{@state == 'drafted' ? 'active' : ''}"
          = link_to 'Drafted', crowdblog.admin_posts_by_state_path('drafted')

  #posts.container
    table.table.table-striped= render :partial => 'post', :collection => @posts

  - content_for :scripts do
    javascript:
        $(function() {
          return $('tr.post').each(function(index, el) {
            Crowdblog.adminPostsPath = '#{crowdblog.admin_posts_path}';
            return new Crowdblog.Views.PostView({
              el: el
            });
          });
        });

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
crowdblog-0.6.2 app/views/crowdblog/admin/posts/index.html.slim
crowdblog-0.6.0 app/views/crowdblog/admin/posts/index.html.slim
crowdblog-0.5.0 app/views/crowdblog/admin/posts/index.html.slim
crowdblog-0.3.3 app/views/crowdblog/admin/posts/index.html.slim
crowdblog-0.4.0 app/views/crowdblog/admin/posts/index.html.slim
crowdblog-0.3.2 app/views/crowdblog/admin/posts/index.html.slim
crowdblog-0.3.1 app/views/crowdblog/admin/posts/index.html.slim
crowdblog-0.3.0 app/views/crowdblog/admin/posts/index.html.slim