From 5c731671c33bc401b0967dd4ab88c079a25ea003 Mon Sep 17 00:00:00 2001 From: Linda <2294690300@qq.com> Date: Wed, 24 May 2017 16:50:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=9A=84=E9=99=84=E4=BB=B6=EF=BC=8C=E5=BA=94?= =?UTF-8?q?=E8=AF=A5=E9=99=84=E4=BB=B6=E5=90=8D=E7=A7=B0=E9=BB=91=E8=89=B2?= =?UTF-8?q?=EF=BC=8C=E8=80=8C=E9=99=84=E4=BB=B6=E7=9A=84=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=88=B0=E6=97=B6=E9=97=B4=E4=BF=A1=E6=81=AF=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/attachments/_activity_attach.html.erb | 4 ++-- .../student_work/_work_attachments_status.html.erb | 10 +++++----- app/views/student_work/index.html.erb | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/attachments/_activity_attach.html.erb b/app/views/attachments/_activity_attach.html.erb index 966e1d673..8752b8404 100644 --- a/app/views/attachments/_activity_attach.html.erb +++ b/app/views/attachments/_activity_attach.html.erb @@ -1,10 +1,10 @@ <% if activity.attachments.any? %> <% activity.attachments.each do |attachment| %> -
  • +
  • <%= link_to_short_attachment attachment,:length=> 58, :class => 'link-color-grey', :download => true %> - ( + ( <%= number_to_human_size attachment.filesize %>) <% user_name = attachment.author.show_name.empty? ? attachment.author : attachment.author.show_name %> diff --git a/app/views/student_work/_work_attachments_status.html.erb b/app/views/student_work/_work_attachments_status.html.erb index ff5fec14c..6587588c6 100644 --- a/app/views/student_work/_work_attachments_status.html.erb +++ b/app/views/student_work/_work_attachments_status.html.erb @@ -1,11 +1,11 @@ <% attachments.each_with_index do |attachment,i| %> -
  • +
  • - <%= link_to_short_attachment attachment,:length=> 58, :download => true -%> - (<%= number_to_human_size attachment.filesize %>) - <%= link_to attachment.author.try(:show_name), user_path(attachment.author) %> - <%= format_time(attachment.created_on) %> + <%= link_to_short_attachment attachment,:length=> 58, :download => true -%> + (<%= number_to_human_size attachment.filesize %>) + <%= link_to attachment.author.try(:show_name), user_path(attachment.author) % > + <%= format_time(attachment.created_on) %>
  • <% end -%> diff --git a/app/views/student_work/index.html.erb b/app/views/student_work/index.html.erb index bbdcd6da2..e878b3b21 100644 --- a/app/views/student_work/index.html.erb +++ b/app/views/student_work/index.html.erb @@ -52,7 +52,7 @@
    -
    +
    <% if @is_teacher%>