Sha256: fbfada2f4cf0ad2e623a247bd3317ed3fc800131c1b37e11d442df5ba29f38ef

Contents?: true

Size: 725 Bytes

Versions: 2

Compression:

Stored size: 725 Bytes

Contents

.span12
  h1 Posts

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

  #posts.container
    table.table.table-striped= render @posts

  - content_for :scripts do
    coffee:
      $ ->
        $('tr.post').each (index, el) ->
          new Crowdblog.Views.PostView
            el: el

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crowdblog-0.1.3 app/views/crowdblog/posts/index.html.slim
crowdblog-0.1.2 app/views/crowdblog/posts/index.html.slim