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