3112: report issue works for no user and inactive user cases.
[arvados.git] / apps / workbench / app / views / users / _manage_account.html.erb
1 <div class="col-sm-6">
2   <div class="panel-group" id="arv-adv-accordion">
3     <% ['Virtual Machines',
4        'Repositories'].each do |section| %>
5       <% section_id = section.gsub(" ","_").downcase %>
6       <div class="panel panel-default">
7         <div class="panel-heading">
8           <h4 class="panel-title">
9             <a data-parent="#arv-adv-accordion" href="#manage_<%=section_id%>">
10               <%= section %>
11             </a>
12           </h4>
13         </div>
14         <div id="manage_<%=section_id%>">
15           <div class="panel-body">
16             <%= render partial: "manage_#{section_id}" %>
17           </div>
18         </div>
19       </div>
20     <% end %>
21   </div>
22 </div>
23 <div class="col-sm-6">
24   <div class="panel-group" id="arv-adv-accordion">
25     <% ['SSH Keys',
26       'Current Token'].each do |section| %>
27       <% section_id = section.gsub(" ","_").downcase %>
28       <div class="panel panel-default">
29         <div class="panel-heading">
30           <% if section_id == 'ssh_keys' %>
31             <div class="pull-right">
32               <%= link_to raw('<i class="fa fa-plus"></i>' " Add new SSH key"), add_ssh_key_popup_url,
33                            {class: 'btn btn-xs btn-primary', :remote => true, 'data-toggle' =>  "modal",
34                             'data-target' => '#add-ssh-key-modal-window'}  %>
35             </div>
36           <% end %>
37           <h4 class="panel-title">
38             <a data-parent="#arv-adv-accordion" href="#manage_<%=section_id%>">
39               <%= section %>
40             </a>
41           </h4>
42         </div>
43         <div id="manage_<%=section_id%>">
44           <div class="panel-body">
45             <%= render partial: "manage_#{section_id}" %>
46           </div>
47         </div>
48       </div>
49     <% end %>
50   </div>
51   <div id="add-ssh-key-modal-window" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>
52 </div>