Sha256: e1ba27a9b486676c6cdbce2f07bae1e6a961be7d27b7e17c7badd9f699222c1f

Contents?: true

Size: 698 Bytes

Versions: 13

Compression:

Stored size: 698 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # This module includes helpers to be used in the admin dashboard, including helper methods to show the admin terms of service.
    module DashboardHelper
      def admin_terms_announcement_args
        {
          callout_class: "warning",
          announcement: announcement_body
        }
      end

      def announcement_body
        body = t("required_review.callout", scope: "decidim.admin.admin_terms_of_service")
        body += " "
        body += link_to(
          t("required_review.cta", scope: "decidim.admin.admin_terms_of_service"),
          admin_terms_show_path
        )
        body
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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