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