Sha256: 52f32f221a3691487b9fe85ad13126b74af29c650c55fccf001cb13744af4ca4

Contents?: true

Size: 686 Bytes

Versions: 13

Compression:

Stored size: 686 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    module Admin
      # Custom helpers, scoped to the meetings admin engine.
      #
      module ApplicationHelper
        include Decidim::MapHelper
        include Decidim::Admin::ResourceScopeHelper
        include Decidim::PaginateHelper

        def tabs_id_for_service(service)
          "meeting_service_#{service.to_param}"
        end

        def tabs_id_for_agenda_item(agenda_item)
          "meeting_agenda_item_#{agenda_item.to_param}"
        end

        def tabs_id_for_agenda_item_child(agenda_item)
          "meeting_agenda_item_#{agenda_item.to_param_child}"
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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