作业详情页显示的附件,应该附件名称黑色,而附件的大小到时间信息全

This commit is contained in:
Linda 2017-05-24 16:50:39 +08:00
parent 7fc0e1ad10
commit 5c731671c3
3 changed files with 8 additions and 8 deletions

View File

@ -1,10 +1,10 @@
<% if activity.attachments.any? %>
<% activity.attachments.each do |attachment| %>
<li class="ml10">
<li class="ml10 color-grey">
<a href="javascript:void(0)" class="link-color-grey">
<i class="fa fa-folder" aria-hidden="true"></i>
<%= link_to_short_attachment attachment,:length=> 58, :class => 'link-color-grey', :download => true %>
<span>(
<span class="color-grey">(
<%= number_to_human_size attachment.filesize %>)
</span>
<% user_name = attachment.author.show_name.empty? ? attachment.author : attachment.author.show_name %>

View File

@ -1,11 +1,11 @@
<% attachments.each_with_index do |attachment,i| %>
<li>
<li class="color-grey">
<a href="#" class="link-color-grey ">
<i class="fa fa-folder" aria-hidden="true"></i>
<span title="点击可下载"><%= link_to_short_attachment attachment,:length=> 58, :download => true -%></span>
<span>(<%= number_to_human_size attachment.filesize %>)</span>
<span><%= link_to attachment.author.try(:show_name), user_path(attachment.author) %></span>
<span><%= format_time(attachment.created_on) %></span>
<span title="点击可下载" ><%= link_to_short_attachment attachment,:length=> 58, :download => true -%></span>
<span >(<%= number_to_human_size attachment.filesize %>)</span>
<span ><%= link_to attachment.author.try(:show_name), user_path(attachment.author) % ></span>
<span ><%= format_time(attachment.created_on) %></span>
</a>
</li>
<% end -%>

View File

@ -52,7 +52,7 @@
</ul>
<div class="cl"></div>
<div id="edu-tab-con-1">
<div class="edu-tab-con-box">
<div class="" style="padding:0 15px;">
<% if @is_teacher%>
<div class="fr edu-position edu-position-hidebox">
<a href="javascript:void(0);" class="font-16"><i class="fa fa-bars"></i></a>