Sha256: 03930de4f98149ae239774522b35a35b8862610f63abd2942464aebdd7d8bf9c

Contents?: true

Size: 787 Bytes

Versions: 6

Compression:

Stored size: 787 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

        def meeting_organizer_picker_text(form)
          return "" if form.object.organizer.blank?

          "#{form.object.organizer.name} (@#{form.object.organizer.nickname})"
        end

        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

6 entries across 6 versions & 1 rubygems

Version Path
decidim-meetings-0.22.0 app/helpers/decidim/meetings/admin/application_helper.rb
decidim-meetings-0.21.0 app/helpers/decidim/meetings/admin/application_helper.rb
decidim-meetings-0.20.1 app/helpers/decidim/meetings/admin/application_helper.rb
decidim-meetings-0.20.0 app/helpers/decidim/meetings/admin/application_helper.rb
decidim-meetings-0.19.1 app/helpers/decidim/meetings/admin/application_helper.rb
decidim-meetings-0.19.0 app/helpers/decidim/meetings/admin/application_helper.rb