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