Sha256: 5fc5181d9f9b863ba25d22b2cfff0c51d7d47ea89d4520a4d43e9b17ed1ab47f

Contents?: true

Size: 549 Bytes

Versions: 9

Compression:

Stored size: 549 Bytes

Contents

module Storytime
  module Dashboard
    module PostsHelper
      def new_post_button(post_type)
        if !post_type.included_in_primary_feed? || Storytime::Post.primary_feed_types.count == 1
          render "basic_new_post_button", post_type: post_type
        else
          render "new_post_dropdown_button", post_type: post_type
        end
      end

      def post_list_title(post_type)
        if !post_type.included_in_primary_feed?
          post_type.human_name
        else
          "Blog Posts"
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
storytime-1.2.0 app/helpers/storytime/dashboard/posts_helper.rb
storytime-1.1.1 app/helpers/storytime/dashboard/posts_helper.rb
storytime-1.0.7 app/helpers/storytime/dashboard/posts_helper.rb
storytime-1.0.6 app/helpers/storytime/dashboard/posts_helper.rb
storytime-1.0.5 app/helpers/storytime/dashboard/posts_helper.rb
storytime-1.0.2 app/helpers/storytime/dashboard/posts_helper.rb
storytime-1.0.1 app/helpers/storytime/dashboard/posts_helper.rb
storytime-1.0.0 app/helpers/storytime/dashboard/posts_helper.rb
storytime-0.0.4 app/helpers/storytime/dashboard/posts_helper.rb