2020-09-04 22:48:53 +08:00
|
|
|
<% at_who_key = SecureRandom.hex %>
|
2020-09-17 19:11:54 +08:00
|
|
|
<div class="atwho-header-res" data-team-id="<%= current_team.id %>" data-at-who-key="<%= SecureRandom.hex %>">
|
2020-09-04 22:48:53 +08:00
|
|
|
<div class="nav nav-tabs sci-nav-tabs">
|
2020-09-15 20:47:57 +08:00
|
|
|
<a class="tab-button sa-projects" href="#prj-tab-<%= at_who_key %>" role="tab" data-toggle="tab"><%= t('atwho.projects') %></a>
|
|
|
|
<a class="tab-button sa-experiments" href="#exp-tab-<%= at_who_key %>" data-toggle="tab"><%= t('atwho.experiments') %></a>
|
|
|
|
<a class="tab-button sa-tasks" href="#tsk-tab-<%= at_who_key %>" data-toggle="tab"><%= t('atwho.tasks') %></a>
|
|
|
|
<a class="tab-button sa-repositories" href="#rep-tab-<%= at_who_key %>" data-toggle="tab"><%= t('atwho.inventories') %></a>
|
2023-06-08 23:33:50 +08:00
|
|
|
<div class="dismiss"><span class="sn-icon sn-icon-close"></span></div>
|
2020-09-04 22:48:53 +08:00
|
|
|
</div>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane" role="tabpanel" id="prj-tab-<%= at_who_key %>" data-object-type="PROJECT"></div>
|
|
|
|
<div class="tab-pane" role="tabpanel" id="exp-tab-<%= at_who_key %>" data-object-type="EXPERIMENT"></div>
|
|
|
|
<div class="tab-pane" role="tabpanel" id="tsk-tab-<%= at_who_key %>" data-object-type="TASK"></div>
|
2024-04-11 09:21:48 +08:00
|
|
|
<div class="tab-pane rep-tab overflow-y-auto max-h-[100px]" role="tabpanel" id="rep-tab-<%= at_who_key %>" data-object-type="REPOSITORY"><% if repositories.length > 1 %>
|
2023-08-11 02:41:39 +08:00
|
|
|
<div class="sci-btn-group flex-wrap">
|
2020-09-04 22:48:53 +08:00
|
|
|
<% repositories.each do |repository| %>
|
|
|
|
<button class="btn btn-light repository-object" data-object-id="<%= repository.id %>">
|
2020-09-21 20:36:34 +08:00
|
|
|
<% if repository.shared_with?(current_team) %>
|
2023-06-08 14:33:37 +08:00
|
|
|
<i class="sn-icon sn-icon-user-menu-friends"></i>
|
2020-09-21 20:36:34 +08:00
|
|
|
<% end %>
|
2023-10-03 16:38:40 +08:00
|
|
|
<div class="max-w-[150px] -ml-2.5 text-left truncate">
|
2023-10-03 15:04:38 +08:00
|
|
|
<%= repository.name %>
|
|
|
|
</div>
|
2020-09-04 22:48:53 +08:00
|
|
|
</button>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2020-09-17 19:11:54 +08:00
|
|
|
<% end %></div>
|
2020-09-04 22:48:53 +08:00
|
|
|
</div>
|
|
|
|
</div>
|