diff options
Diffstat (limited to 'app/helpers/stat_anchors_helper.rb')
-rw-r--r-- | app/helpers/stat_anchors_helper.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/helpers/stat_anchors_helper.rb b/app/helpers/stat_anchors_helper.rb index 957985d6953..31f5d73d020 100644 --- a/app/helpers/stat_anchors_helper.rb +++ b/app/helpers/stat_anchors_helper.rb @@ -11,12 +11,22 @@ module StatAnchorsHelper private + def new_button_attribute(anchor) + anchor.class_modifier || 'btn-link gl-text-blue-500!' + end + def button_attribute(anchor) anchor.class_modifier || 'btn-dashed' end def extra_classes(anchor) - if anchor.is_link + if Feature.enabled?(:project_overview_reorg) + if anchor.is_link + 'stat-link gl-px-0! gl-pb-2!' + else + "stat-link gl-px-0! gl-pb-2! #{new_button_attribute(anchor)}" + end + elsif anchor.is_link 'stat-link' else "gl-button btn #{button_attribute(anchor)}" |