Sha256: 0ac358adcebe120eafadecd9d40a08389d18e76fc6129b9e43e80e70adefcfe1

Contents?: true

Size: 566 Bytes

Versions: 13

Compression:

Stored size: 566 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Blogs
    # Custom helpers, scoped to the blogs engine.
    #
    module ApplicationHelper
      include PaginateHelper
      include SanitizeHelper
      include Decidim::Blogs::PostsHelper
      include ::Decidim::EndorsableHelper
      include ::Decidim::FollowableHelper
      include Decidim::Comments::CommentsHelper

      def component_name
        (defined?(current_component) && translated_attribute(current_component&.name).presence) || t("decidim.components.blogs.name")
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-blogs-0.29.1 app/helpers/decidim/blogs/application_helper.rb
decidim-blogs-0.28.4 app/helpers/decidim/blogs/application_helper.rb
decidim-blogs-0.29.0 app/helpers/decidim/blogs/application_helper.rb
decidim-blogs-0.28.3 app/helpers/decidim/blogs/application_helper.rb
decidim-blogs-0.29.0.rc4 app/helpers/decidim/blogs/application_helper.rb
decidim-blogs-0.29.0.rc3 app/helpers/decidim/blogs/application_helper.rb
decidim-blogs-0.29.0.rc2 app/helpers/decidim/blogs/application_helper.rb
decidim-blogs-0.29.0.rc1 app/helpers/decidim/blogs/application_helper.rb
decidim-blogs-0.28.2 app/helpers/decidim/blogs/application_helper.rb
decidim-blogs-0.28.1 app/helpers/decidim/blogs/application_helper.rb
decidim-blogs-0.28.0 app/helpers/decidim/blogs/application_helper.rb
decidim-blogs-0.28.0.rc5 app/helpers/decidim/blogs/application_helper.rb
decidim-blogs-0.28.0.rc4 app/helpers/decidim/blogs/application_helper.rb