You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.8 KiB
50 lines
1.8 KiB
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', :media => 'all' %>
|
|
<h3>实训列表</h3>
|
|
<%#= render 'admin/tab_excellent_courses' %>
|
|
|
|
<!--<h3>-->
|
|
<!--<%#=l(:label_excellent_courses_list)%>-->
|
|
<!--</h3>-->
|
|
|
|
<div class="autoscroll">
|
|
<table class="list" style="width: 100%;table-layout: fixed">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 25px;">
|
|
序号
|
|
</th>
|
|
<th style="width: 120px;">
|
|
实训名
|
|
</th>
|
|
<th style="width: 50px;">
|
|
创建者
|
|
</th>
|
|
<th style="width: 50px;">
|
|
操作
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @shixuns.each_with_index do |shixun, index| %>
|
|
<tr class="<%= cycle("odd", "even") %>">
|
|
<td style="text-align: center;">
|
|
<%= shixun.id %>
|
|
</td>
|
|
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=shixun.name%>'>
|
|
<span>
|
|
<%= link_to(shixun.name, shixun_path(shixun)) %>
|
|
</span>
|
|
</td>
|
|
<td align="center">
|
|
<%= link_to(shixun.try(:owner).try(:realname).truncate(6, omission: '...'), user_path(shixun.owner)) %>
|
|
</td>
|
|
<td class="buttons">
|
|
<%#= link_to(shixun.authentication ? "已认证" : "认证", { :controller => 'admin', :action => 'shixun_authentication', :id => shixun.id, :auth => shixun.authentication }, :onclick => 'shixun_authentication()', :class => 'icon-del', :remote => true) %>
|
|
<a href="<%= admin_shixun_authentication_path(:id => shixun.id, :auth => shixun.authentication, :index => index) %>" class='icon-del' id="shixun_authentication_<%= index %>" data-remote="true"><%= shixun.authentication ? "已认证" : "认证" %></a>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|