Rubocop beautified code v2

This commit is contained in:
Zanz2 2017-09-26 13:21:48 +02:00
parent ad1847256c
commit 055746bfd9

View file

@ -158,7 +158,8 @@ CGI.parse(URI.parse(request.referrer).query).fetch("type") %>
<% if whitelist_simple.include?(key["component_type_id"]) && key["data"]!="" &&
key["data"] %>
<br>
<% case key["component_type_id"]%><% when "1" %>
<% case key["component_type_id"]
when "1" %>
<br>
<strong>
Description:
@ -173,7 +174,8 @@ CGI.parse(URI.parse(request.referrer).query).fetch("type") %>
<% end %>
<% elsif key && whitelist_complex.include?(key["component_type_id"]) %>
<% case key["component_type_id"]%><% when "8"%>
<% case key["component_type_id"]
when "8"%>
<br>
<strong><%= key["name"]+": " %></strong>
<%= (key["source_data"]["name"]) %>