|
|
|
@@ -1,9 +1,9 @@ |
|
|
|
<% school = laboratory&.school %> |
|
|
|
<td><%= list_index_no((params[:page] || 1).to_i, index) %></td> |
|
|
|
<td class="text-left"><%= school&.name || 'Trustie主站' %></td> |
|
|
|
<td class="text-left"><%= school&.name || '可控开源社区' %></td> |
|
|
|
<td class="text-left"> |
|
|
|
<% if laboratory.identifier %> |
|
|
|
<%= link_to laboratory.site, "https://#{laboratory.site}", target: '_blank' %> |
|
|
|
<%= link_to laboratory.site, "http://#{laboratory.site}", target: '_blank' %> |
|
|
|
<% else %> |
|
|
|
-- |
|
|
|
<% end %> |
|
|
|
@@ -51,19 +51,5 @@ |
|
|
|
<% if school.present? && laboratory.id != 1 %> |
|
|
|
<%= javascript_void_link '添加管理员', class: 'action', data: { laboratory_id: laboratory.id, toggle: 'modal', target: '.admin-add-laboratory-user-modal' } %> |
|
|
|
<%= link_to '同步用户', synchronize_user_admins_laboratory_path(laboratory), remote: true, data: { confirm: '确认同步该单位下的所有用户到云上实验室吗?' }, class: 'action' %> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
<div class="d-inline"> |
|
|
|
<%= javascript_void_link('更多', class: 'action dropdown-toggle', 'data-toggle': 'dropdown', 'aria-haspopup': true, 'aria-expanded': false) %> |
|
|
|
<div class="dropdown-menu more-action-dropdown"> |
|
|
|
<%= link_to '轮播图', admins_laboratory_carousels_path(laboratory), class: 'dropdown-item' %> |
|
|
|
|
|
|
|
<%= link_to '查看实训项目', admins_laboratory_laboratory_shixuns_path(laboratory), class: 'dropdown-item' %> |
|
|
|
<%= link_to '查看实践课程', admins_laboratory_laboratory_subjects_path(laboratory), class: 'dropdown-item' %> |
|
|
|
|
|
|
|
<% if school.present? && laboratory.id != 1 %> |
|
|
|
<%= delete_link '删除', admins_laboratory_path(laboratory, element: ".laboratory-item-#{laboratory.id}"), class: 'dropdown-item delete-laboratory-action' %> |
|
|
|
<% end %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% end %> |
|
|
|
</td> |