Skip to content

Commit

Permalink
table update
Browse files Browse the repository at this point in the history
  • Loading branch information
gryphon committed May 8, 2024
1 parent 5f853d0 commit c38c1ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/custom_table/_table.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,12 @@
%th.text-end
- if !local_assigns[:group_actions].nil?
= self.send(local_assigns[:group_actions], group)
- items.each do |item|
- position+=1
= render "custom_table/table_row", local_assigns.merge({item: item, fields: fields, position: position, fields_totals: fields_totals, grouped_by_id: group_id})
- la = local_assigns.merge({item: item, fields: fields, position: position, fields_totals: fields_totals, grouped_by_id: group_id})
- la[:expanded] = true if group.nil? # Items without group will be shown anyway
= render "custom_table/table_row", la
- else
Expand Down

0 comments on commit c38c1ee

Please sign in to comment.