Skip to content

Commit

Permalink
TextualMultilabel: fix additional_table_class.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpovolny committed Mar 7, 2017
1 parent 5ba6e0a commit e999729
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 e999729

Please sign in to comment.