Merge branch '16683-fed-sharing' refs #16683
[arvados.git] / apps / workbench / app / views / application / _show_advanced.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <div class="panel-group" id="arv-adv-accordion">
6   <% ['API response',
7       'Metadata',
8       'Python example',
9       'CLI example',
10       'curl example'].each do |section| %>
11     <% section_id = section.gsub(" ","_").downcase %>
12     <div class="panel panel-default">
13       <div class="panel-heading">
14         <h4 class="panel-title">
15           <a data-toggle="collapse" data-parent="#arv-adv-accordion" href="#advanced_<%=section_id%>">
16             <%= section %>
17           </a>
18         </h4>
19       </div>
20       <div id="advanced_<%=section_id%>" class="panel-collapse collapse <%#= 'in' if section == 'API response'%>">
21         <div class="panel-body">
22           <%= render partial: "show_advanced_#{section_id}", locals: {object: @object} %>
23         </div>
24       </div>
25     </div>
26   <% end %>
27 </div>