Sha256: 1d0e73023d1dca286528fe8595db0143e166284c37fda3e70bb1577de801c1d7
Contents?: true
Size: 655 Bytes
Versions: 101
Compression:
Stored size: 655 Bytes
Contents
module OrganizationBreadcrumbsHelper def organization_breadcrumb(has_link: true) clazz = 'last' unless has_link breadcrumb_item_for_linkable(organization_breadcrumb_item_content, root_path, clazz) end private def organization_breadcrumb_item_content(organization=Organization.current) if organization.breadcrumb_image_url.present? breadcrumb_image_for organization else breadcrumb_text_for organization end end def breadcrumb_image_for(organization) image_tag organization.breadcrumb_image_url, class: "da mu-breadcrumb-img" end def breadcrumb_text_for(organization) organization.name end end
Version data entries
101 entries across 101 versions & 1 rubygems