# frozen_string_literal: true # rubocop:disable Metrics/LineLength module IconsHelper def draw_custom_icon(icon, team = nil) title = '' case icon when 'i-shared' icon = '' when 'shared-edit' title = "#{t('repositories.icon_title.shared_edit', team_name: team.name)}" icon = '' when 'shared-read' title = "#{t('repositories.icon_title.shared_read', team_name: team.name)}" icon = '' when 'task-icon' return ''.html_safe end ('' + title + icon + '').html_safe end end # rubocop:enable Metrics/LineLength