mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-10 15:14:33 +08:00
Rubocop beautified code v2
This commit is contained in:
parent
ad1847256c
commit
055746bfd9
1 changed files with 4 additions and 2 deletions
|
@ -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"]) %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue