From 0d8b5c0101c3e35f1eac641e7ef7ce3fc7d1139a Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Wed, 16 Oct 2024 20:54:58 +0200 Subject: [PATCH] allow custom data for value table --- app/views/additionals/_chart_table_values.html.slim | 2 +- app/views/additionals/charts/_pie_with_value_table.slim | 4 +++- assets/stylesheets/additionals.css | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/additionals/_chart_table_values.html.slim b/app/views/additionals/_chart_table_values.html.slim index 17a794d0..b6a0b34c 100644 --- a/app/views/additionals/_chart_table_values.html.slim +++ b/app/views/additionals/_chart_table_values.html.slim @@ -1,4 +1,4 @@ -table.list.issue-report.table-of-values +table.list.issue-report.values = title_with_fontawesome l(:label_table_of_values), 'far fa-list-alt', 'caption' thead tr diff --git a/app/views/additionals/charts/_pie_with_value_table.slim b/app/views/additionals/charts/_pie_with_value_table.slim index 14f213fa..760ed7e5 100644 --- a/app/views/additionals/charts/_pie_with_value_table.slim +++ b/app/views/additionals/charts/_pie_with_value_table.slim @@ -3,7 +3,9 @@ canvas id="#{@chart[:id]}" style="width: #{@chart[:width]}px; height: #{@chart[:height]}px;" .additionals-table-of-values = render 'additionals/chart_table_values' - + - if defined?(table_infos) && table_infos.present? + .table-infos.values + = table_infos .clear-both javascript: diff --git a/assets/stylesheets/additionals.css b/assets/stylesheets/additionals.css index fbabca48..8cc697ce 100644 --- a/assets/stylesheets/additionals.css +++ b/assets/stylesheets/additionals.css @@ -330,7 +330,7 @@ div.additionals-projects li.project.odd { width: 450px; } -.additionals-table-of-values { +.additionals-table-of-values > .values { float: left; width: 450px; }