From a8cbfe6e2ba03b540f1115b1545f62fb906956f3 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Fri, 18 Oct 2024 13:59:09 +0200 Subject: [PATCH] add svg list-detail --- app/views/additionals/_chart_table_values.html.slim | 3 ++- assets/images/icons.svg | 12 ++++++++++++ lib/additionals/helpers.rb | 7 ------- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/app/views/additionals/_chart_table_values.html.slim b/app/views/additionals/_chart_table_values.html.slim index b6a0b34c..c5221e5a 100644 --- a/app/views/additionals/_chart_table_values.html.slim +++ b/app/views/additionals/_chart_table_values.html.slim @@ -1,5 +1,6 @@ table.list.issue-report.values - = title_with_fontawesome l(:label_table_of_values), 'far fa-list-alt', 'caption' + caption + = svg_icon_tag 'list-details', label: :label_table_of_values, size: 16 thead tr th = @chart[:label] diff --git a/assets/images/icons.svg b/assets/images/icons.svg index af41dcf6..c5a5845a 100644 --- a/assets/images/icons.svg +++ b/assets/images/icons.svg @@ -137,6 +137,18 @@ + + + + + + + + + + + + diff --git a/lib/additionals/helpers.rb b/lib/additionals/helpers.rb index ad279d7f..13d2bc3a 100644 --- a/lib/additionals/helpers.rb +++ b/lib/additionals/helpers.rb @@ -197,13 +197,6 @@ module Additionals RedminePluginKit.textarea_cols text, min:, max: end - def title_with_fontawesome(title, symbole, wrapper = 'span') - tag.send wrapper do - concat tag.i class: "#{symbole} for-fa-title", 'aria-hidden': 'true' - concat title - end - end - def format_yes(value, lowercase: false) if RedminePluginKit.true? value lowercase ? l(:general_text_yes) : l(:general_text_Yes)