mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 13:44:23 +08:00
Refactor and threw out useless comments
This commit is contained in:
parent
d52400f741
commit
3a8092b663
1 changed files with 3 additions and 9 deletions
|
@ -105,26 +105,20 @@
|
|||
|
||||
<% end %>
|
||||
|
||||
<% counter=0 %>
|
||||
<% whitelist_simple=["1","6","17"] %>
|
||||
<% whitelist_complex=["8","9","15","18","19","20"]%>
|
||||
<% @json_object["steps"].each do |step| %>
|
||||
<% @json_object["steps"].each_with_index do |step,counter| %>
|
||||
<div style="display: block;">
|
||||
<hr>
|
||||
<td>
|
||||
<div class="badge-num">
|
||||
<span class="badge-preview bg-primary size-digit-1">
|
||||
<b data-val="position"><%= (counter+=1) %></b>
|
||||
<b data-val="position"><%= (counter+1) %></b>
|
||||
</span>
|
||||
|
||||
<span class="step-panel-collapse-link" data-toggle="collapse">
|
||||
<span class="glyphicon collapse-step-icon glyphicon-collapse-up"></span>
|
||||
<%# this guid attributes were ommited because they didnt seem relevenat %>
|
||||
<%#= Step guid (Protocols.io) :%><%#= step["guid"] %>
|
||||
<%# if counter>1 #only steps after the first one have previous step guid field
|
||||
valid%>
|
||||
<%#=Guid of previous step (Protocols.io) :%><%#= step["previous_guid"] %>
|
||||
<%# end %>
|
||||
|
||||
<% title=nil %>
|
||||
<% step["components"].each do |key1,value1| #finding section (title of step) %>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue