Clean up haml view that haml 5 didn't like
This commit is contained in:
parent
c729fc4fe9
commit
0f584cf5ad
1 changed files with 3 additions and 8 deletions
|
|
@ -5,14 +5,9 @@
|
||||||
- else
|
- else
|
||||||
%ul.nav.nav-tabs{ 'role'=>'tablist' }
|
%ul.nav.nav-tabs{ 'role'=>'tablist' }
|
||||||
- commercials.each.with_index(1) do |commercial, index|
|
- commercials.each.with_index(1) do |commercial, index|
|
||||||
- if index == 1
|
%li{class: "#{active if (index == 1)}"}
|
||||||
%li.active
|
%a{ 'href'=>"##{index}", 'role'=>'tab', 'data-toggle'=>'tab' }
|
||||||
%a{ 'href'=>"##{index}", 'role'=>'tab', 'data-toggle'=>'tab' }
|
= index
|
||||||
= index
|
|
||||||
- else
|
|
||||||
%li
|
|
||||||
%a{ 'href'=>"##{index}",' "role"'=>'tab', 'data-toggle'=>'tab' }
|
|
||||||
= index
|
|
||||||
.tab-content
|
.tab-content
|
||||||
- commercials.each.with_index(1) do |commercial, index|
|
- commercials.each.with_index(1) do |commercial, index|
|
||||||
- if index == 1
|
- if index == 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue