From fad1f0406760d60ac3904a5a29c3538662aeb12f Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Thu, 21 Feb 2019 17:26:07 +0100 Subject: [PATCH] Fix proposal#show --- app/views/shared/_media_items.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_media_items.html.haml b/app/views/shared/_media_items.html.haml index afc954d9..e4ef3c0d 100644 --- a/app/views/shared/_media_items.html.haml +++ b/app/views/shared/_media_items.html.haml @@ -5,7 +5,7 @@ - else %ul.nav.nav-tabs{ 'role'=>'tablist' } - commercials.each.with_index(1) do |commercial, index| - %li{class: "#{active if (index == 1)}"} + %li{class: "#{'active' if (index == 1)}"} %a{ 'href'=>"##{index}", 'role'=>'tab', 'data-toggle'=>'tab' } = index .tab-content