64 lines
2.0 KiB
Plaintext
64 lines
2.0 KiB
Plaintext
|
<h3><%=l(:label_project_resource_list)%></h3>
|
||
|
|
||
|
|
||
|
<div class="autoscroll">
|
||
|
<table class="list" style="width: 100%;table-layout: fixed">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th style="width: 60px;">
|
||
|
资源名称
|
||
|
</th>
|
||
|
<th style="width: 30px;">
|
||
|
资源大小
|
||
|
</th>
|
||
|
<th style="width: 25px;">
|
||
|
资源类型
|
||
|
</th>
|
||
|
<th style="width: 23px;">
|
||
|
上传时间
|
||
|
</th>
|
||
|
<th style="width: 15px;">
|
||
|
下载次数
|
||
|
</th>
|
||
|
<th style="width: 20px;">
|
||
|
上传者
|
||
|
</th>
|
||
|
<th style="width: 35px;">
|
||
|
所属项目
|
||
|
</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% @pro_resource.each do |pro_resource| %>
|
||
|
<tr class="<%= cycle("odd", "even") %>">
|
||
|
<td style="text-align: left;">
|
||
|
<%= link_to truncate(pro_resource.filename, :length => 18), download_named_attachment_path(pro_resource.id, pro_resource.filename ), :title => pro_resource.filename,:class=>'resourcesBlack'%>
|
||
|
</td>
|
||
|
<td style=" text-align: center;">
|
||
|
<%= number_to_human_size(pro_resource.filesize)%>
|
||
|
</td>
|
||
|
<td style=" text-align: center;">
|
||
|
项目资源
|
||
|
</td>
|
||
|
<td style=" text-align: center;">
|
||
|
<%= format_date(pro_resource.created_on)%>
|
||
|
</td>
|
||
|
<td style=" text-align: center;">
|
||
|
<%= pro_resource.downloads %>
|
||
|
</td>
|
||
|
<td style=" text-align: center;">
|
||
|
<%= link_to(User.find(pro_resource.author_id).realname, user_path(User.find(pro_resource.author_id)) ) %>
|
||
|
</td>
|
||
|
<td style=" text-align: center;">
|
||
|
<%=link_to truncate(Project.find(pro_resource.container_id).name, :length => 10), project_path(Project.find(pro_resource.container_id)), :title => Project.find(pro_resource.container_id).name, :class => "hidden fl w170" %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
|
||
|
<div class="pagination">
|
||
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %>
|
||
|
</div>
|