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