Sha256: ce3fcc88dcf331d01a9d14a0a5f3ed376576fe2de1113e4d64174d4ff82b5b58

Contents?: true

Size: 456 Bytes

Versions: 4

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Gamification
    class BadgesController < Decidim::ApplicationController
      include HasSpecificBreadcrumb

      def index
        @badges = Decidim::Gamification.badges.sort_by(&:name)
      end

      def breadcrumb_item
        {
          label: t("decidim.gamification.badges.index.title"),
          active: true,
          url: gamification_badges_path
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-core-0.28.1 app/controllers/decidim/gamification/badges_controller.rb
decidim-core-0.28.0 app/controllers/decidim/gamification/badges_controller.rb
decidim-core-0.28.0.rc5 app/controllers/decidim/gamification/badges_controller.rb
decidim-core-0.28.0.rc4 app/controllers/decidim/gamification/badges_controller.rb