Sha256: 2dc047797e91310eae1d3b54df3ab27ee8b55a56cd024a5ab15c47275f7800d9

Contents?: true

Size: 662 Bytes

Versions: 6

Compression:

Stored size: 662 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # This module contains the breadcrumb for the verifications workflows
    module WorkflowsBreadcrumb
      extend ActiveSupport::Concern

      included do
        helper_method :context_breadcrumb_items
      end

      private

      def context_breadcrumb_items
        @context_breadcrumb_items ||= [authorization_breadcrumb_item]
      end

      def authorization_breadcrumb_item
        {
          label: I18n.t("menu.authorization_workflows", scope: "decidim.admin"),
          url: decidim_admin.authorization_workflows_path,
          active: true
        }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-verifications-0.29.1 app/controllers/concerns/decidim/admin/workflows_breadcrumb.rb
decidim-verifications-0.29.0 app/controllers/concerns/decidim/admin/workflows_breadcrumb.rb
decidim-verifications-0.29.0.rc4 app/controllers/concerns/decidim/admin/workflows_breadcrumb.rb
decidim-verifications-0.29.0.rc3 app/controllers/concerns/decidim/admin/workflows_breadcrumb.rb
decidim-verifications-0.29.0.rc2 app/controllers/concerns/decidim/admin/workflows_breadcrumb.rb
decidim-verifications-0.29.0.rc1 app/controllers/concerns/decidim/admin/workflows_breadcrumb.rb