Sha256: 4d384e8b996424a7503ce7f908a34bc61b2e7536c9a7f1d9de65a36de23a66b0

Contents?: true

Size: 686 Bytes

Versions: 47

Compression:

Stored size: 686 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 Use.
    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_use")
        body += " "
        body += link_to(
          t("required_review.cta", scope: "decidim.admin.admin_terms_of_use"),
          admin_terms_show_path
        )
        body
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
decidim-admin-0.27.9 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.27.8 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.27.7 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.27.6 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.26.10 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.26.9 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.27.5 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.26.8 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.27.4 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.27.3 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.26.7 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.26.5 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.27.2 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.27.1 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.26.4 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.27.0 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.26.3 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.27.0.rc2 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.27.0.rc1 app/helpers/decidim/admin/dashboard_helper.rb
decidim-admin-0.26.2 app/helpers/decidim/admin/dashboard_helper.rb