% if widgets.present? and widgets.length > 0 %> <% @half = false, @two_third = false, @one_third = 0 %> <% widgets.each do |widget| %> <% case widget.size_type when 'full' container_class = 'col-md-12 col-xs-12' when 'half' container_class = 'col-md-6 col-xs-12' when 'one-third' container_class = 'col-md-4 col-xs-12' when 'one-fourth' container_class = 'col-md-3 col-xs-12' end %> <% if (@is_download) && (@table_widgets.include?(widget.file_name)) %>