mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Restore colors parameter of donut chart partial
This parameter was accidentally disconnected in commit c967a0b9a4
but is still used by `app/views/admin/conferences/index.html.haml` and
`app/views/admin/events/index.html.haml`.
This commit is contained in:
parent
ed8a2696bb
commit
ef298f5a22
1 changed files with 2 additions and 1 deletions
|
|
@ -1,8 +1,9 @@
|
|||
:ruby
|
||||
combined_data ||= {}
|
||||
data ||= chart_values(combined_data)
|
||||
colors ||= chart_colors(combined_data)
|
||||
|
||||
.text-center
|
||||
%h4
|
||||
= title
|
||||
= pie_chart data, donut: true, legend: 'bottom', download: true, messages: { empty: 'No data' }, colors: chart_colors(combined_data)
|
||||
= pie_chart data, donut: true, legend: 'bottom', download: true, messages: { empty: 'No data' }, colors: colors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue