closes #4477
[arvados.git] / apps / workbench / app / views / application / _show_advanced.html.erb
1 <div class="panel-group" id="arv-adv-accordion">
2   <% ['API response',
3       'Metadata',
4       'Python example',
5       'CLI example',
6       'curl example'].each do |section| %>
7     <% section_id = section.gsub(" ","_").downcase %>
8     <div class="panel panel-default">
9       <div class="panel-heading">
10         <h4 class="panel-title">
11           <a data-toggle="collapse" data-parent="#arv-adv-accordion" href="#advanced_<%=section_id%>">
12             <%= section %>
13           </a>
14         </h4>
15       </div>
16       <div id="advanced_<%=section_id%>" class="panel-collapse collapse <%#= 'in' if section == 'API response'%>">
17         <div class="panel-body">
18           <%= render partial: "show_advanced_#{section_id}", locals: {object: @object} %>
19         </div>
20       </div>
21     </div>
22   <% end %>
23 </div>