Sha256: c2267d5363fbc7f40b032e7fedfd825159493e6d00112735a2c7555f7af68057
Contents?: true
Size: 556 Bytes
Versions: 87
Compression:
Stored size: 556 Bytes
Contents
module Pageflow module Admin class MembershipRoleWithTooltip < ViewComponent builder_method :membership_role_with_tooltip def build(role, options = {}) span t(role, scope: 'activerecord.values.pageflow/membership.role'), class: "membership_role #{role} tooltip_clue" do div t(role, scope: tooltip_scope(options)), class: 'tooltip_bubble' end end private def tooltip_scope(options) "pageflow.admin.users.roles.#{options[:scope]}.tooltip" end end end end
Version data entries
87 entries across 87 versions & 1 rubygems