Sha256: 61dd255ac13ff49dad3a8bada24e079f2100b0cc5e4f2366f21630bd5c5d9a3b

Contents?: true

Size: 921 Bytes

Versions: 26

Compression:

Stored size: 921 Bytes

Contents

- posts = recent_posts(category: nil, limit: 5)

- if EffectivePosts.categories.present?
  - categories = EffectivePosts.categories
  %h4.dashboard-title Categories
  %ul.list-unstyled
    %li= link_to 'All Posts', effective_posts.posts_path

    - categories.sort.each do |category|
      %li= link_to category.to_s.titleize, effective_post_category_path(category)

- posts = recent_posts(category: nil, limit: 5)
%h4.dashboard-title Recent
%ul.list-unstyled
  - posts.each do |post|
    %li= link_to post, effective_post_path(post)

  - if posts.length == 0
    %li= link_to 'None', effective_posts.posts_path, class: 'disabled'

- if EffectiveResources.authorized?(self, :admin, :effective_posts)
  %h4.dashboard-title Admin
  %ul.list-unstyled
    %li= link_to 'All Posts', effective_posts.admin_posts_path

    - if @post.present?
      %li= link_to 'Edit Post Settings', effective_posts.edit_admin_post_path(@post)

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
effective_posts-2.7.2 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.7.1 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.7.0 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.6.2 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.6.1 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.6.0 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.5.0 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.4.2 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.4.1 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.4.0 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.3.1 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.3.0 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.2.4 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.2.3 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.2.2 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.2.1 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.2.0 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.1.1 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.1.0 app/views/effective/posts/_sidebar.html.haml
effective_posts-2.0.6 app/views/effective/posts/_sidebar.html.haml