Sha256: f253e082c503ba68558cb349b23d9fc7c18865972495e0547976b42db61d2bcf
Contents?: true
Size: 523 Bytes
Versions: 16
Compression:
Stored size: 523 Bytes
Contents
module ContentViewHelper def full_title_for(content) "#{t(content_type_number(content), number: content.number)}: #{content.name}" end def short_title_for(content) content.name end def show_content?(content) current_access_mode.show_content?(content) end def show_content_element? current_access_mode.show_content_element? end private def content_type_number(content) "#{content_type(content)}_number" end def content_type(content) content.model_name.element end end
Version data entries
16 entries across 16 versions & 1 rubygems