From 8c44d2575070b7eba6c1e289c46652bc5cd47d99 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Mon, 9 Mar 2015 10:27:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E8=B5=84=E6=BA=90=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=90=9C=E7=B4=A2=E4=B8=AD=E6=A0=87=E7=AD=BE=E4=B8=A2?= =?UTF-8?q?=E5=A4=B1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/tags/_show_attachments.html.erb | 33 +++++++++++++++++------ config/locales/zh.yml | 7 +++++ 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/app/views/tags/_show_attachments.html.erb b/app/views/tags/_show_attachments.html.erb index 509acc0ba..a76211fc6 100644 --- a/app/views/tags/_show_attachments.html.erb +++ b/app/views/tags/_show_attachments.html.erb @@ -9,18 +9,35 @@
- <%= l(:label_attachment) %>:  <%= file.filename %> + + <%= l(:label_attachment) %>: +    + <%= file.filename %> + - <%= link_to_attachment file, {:download => true, :text => image_tag("/images/button/dl.png", width: "70px", alt: l(:button_download), :class => 'download_icon')}%> + <%= link_to_attachment file, {:download => true, :text => image_tag("/images/button/dl.png", width: "70px", alt: l(:button_download), :class => 'download_icon')}%>
- <%= l(:field_description) %>:  <%= file.description %> -
<%= l('attachment.category')%><%=result_come_from file%>
+ + <%= l(:field_description) %> + : +    + <%= file.description %> +
+ <%= l('label_attachment_category')%> + <%=result_come_from file%> +
- <%= l('attachment.download_num')%><%= file.downloads%>| - <%= l('attachment.size')%><%= number_to_human_size(file.filesize) %>| - <%= l('attachment.sharer')%><%= link_to file.author, user_path(file.author), target: "_blank" unless file.author.blank? %>| - <%= l('attachment.upload_time')%><%= format_time(file.created_on) %> + <%= l('label_attachment_download_num')%> + <%= file.downloads%>| + <%= l('label_attachment_size')%> + <%= number_to_human_size(file.filesize) %>| + <%= l('label_attachment_sharer')%> + + <%= link_to file.author, user_path(file.author), target: "_blank" unless file.author.blank? %> + | + <%= l('label_attachment_upload_time')%> + <%= format_time(file.created_on) %>
diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 8bcb8284b..2b4e41755 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -2582,3 +2582,10 @@ zh: label_enterprises: 组织 label_add_tag: 添加标签 + label_tags_opensource: 开源项目 + label_attachment_category: 所属分类 + label_attachment_download_num: 下载 + label_attachment_size: 大小 + label_attachment_sharer: 共享者 + label_attachment_upload_time: 上传时间 +