Sha256: c6c2034c1c719a46906851eea3e680aa6c4ee92def963f0869bea48f3db8ff6e
Contents?: true
Size: 430 Bytes
Versions: 26
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true module Renalware module LinkHelper # A wrapper around link_to_if that will output greyed-out text to indicate the option is # not permitted if condition is falsey. def link_to_if_allowed(condition, name, options = {}, html_options = {}) link_to_if(condition, name, options, html_options) do content_tag(:span, class: "no-permission") { name } end end end end
Version data entries
26 entries across 26 versions & 1 rubygems