mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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
|
||||
%ul.nav.nav-tabs{ 'role'=>'tablist' }
|
||||
- commercials.each.with_index(1) do |commercial, index|
|
||||
- if index == 1
|
||||
%li.active
|
||||
%a{ 'href'=>"##{index}", 'role'=>'tab', 'data-toggle'=>'tab' }
|
||||
= index
|
||||
- else
|
||||
%li
|
||||
%a{ 'href'=>"##{index}",' "role"'=>'tab', 'data-toggle'=>'tab' }
|
||||
= index
|
||||
%li{class: "#{active if (index == 1)}"}
|
||||
%a{ 'href'=>"##{index}", 'role'=>'tab', 'data-toggle'=>'tab' }
|
||||
= index
|
||||
.tab-content
|
||||
- commercials.each.with_index(1) do |commercial, index|
|
||||
- if index == 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue