Call AdminTooltipComponent directly and remove unnecessary partial

This commit is contained in:
Cillian O'Ruanaidh
2026-02-13 10:05:59 +00:00
committed by Maikel Linke
parent 7433f6d183
commit 50265780cf
2 changed files with 2 additions and 3 deletions

View File

@@ -12,10 +12,10 @@
%th= t('.manager')
%th.center
= t('.owner')
= render partial: 'admin/shared/question_circle_tooltip', locals: { tooltip_text: t('.owner_tip') }
= render AdminTooltipComponent.new(text: t('.owner_tip'), link_text: %[<i class="fa fa-question-circle"></i>].html_safe, link: nil)
%th.center
= t('.contact')
= render partial: 'admin/shared/question_circle_tooltip', locals: { tooltip_text: t('.contact_tip') }
= render AdminTooltipComponent.new(text: t('.contact_tip'), link_text: %[<i class="fa fa-question-circle"></i>].html_safe, link: nil)
%tbody
- @enterprise.users.each do |user|
- contact = user.id == @enterprise.contact&.id

View File

@@ -1 +0,0 @@
= render AdminTooltipComponent.new(text: tooltip_text, link_text: %[<i class="fa fa-question-circle"></i>].html_safe, link: nil)