Skip to content

Commit

Permalink
Merge pull request #609 from martinpovolny/additional_table_class
Browse files Browse the repository at this point in the history
TextualMultilabel: fix additional_table_class.
  • Loading branch information
mzazrivec authored Mar 9, 2017
2 parents 5857a28 + e999729 commit 830c9a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/helpers/textual_multilabel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ def template
end

def locals
options[:additional_table_class] ||= ''
options.merge(:title => title)
end
end
2 changes: 1 addition & 1 deletion app/views/shared/summary/_textual_multilabel.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- if values.present?
%table.table.table-bordered.table-striped.table-summary-screen{:class => additional_table_class || ""}
%table.table.table-bordered.table-striped.table-summary-screen{:class => additional_table_class}
%thead
%tr
%th{:colspan => labels.count, :align => "left"}
Expand Down

0 comments on commit 830c9a7

Please sign in to comment.