From 1738fee99f941ddd0493454b05a8b1602f1d1826 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 25 Oct 2016 09:30:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=BA=93=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E6=89=A9=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/files/_project_file.html.erb | 12 ++++++------ app/views/files/_project_list.html.erb | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/views/files/_project_file.html.erb b/app/views/files/_project_file.html.erb index 3533e3a9d..27e9673a7 100644 --- a/app/views/files/_project_file.html.erb +++ b/app/views/files/_project_file.html.erb @@ -50,9 +50,9 @@ } -
-
-
资源库
+
+ -
<% unless User.current.logged? %>

您尚未登录,登录 @@ -75,8 +75,8 @@

<% end %> -
-
+
+
<%= form_tag( search_project_project_files_path(@project), method: 'get',:class => "re_search",:remote=>true) do %> <%= text_field_tag 'name', params[:name], name: "name", :class => 're_schbox',:style=>"padding: 0px"%> <%= submit_tag "项目内搜索", :class => "re_schbtn b_lblue",:name => "incourse",:id => "incourse", :onmouseover => "presscss('incourse')",:onmouseout =>"buttoncss()", :style =>"width:72px;" %> diff --git a/app/views/files/_project_list.html.erb b/app/views/files/_project_list.html.erb index 703984a98..206a0a5f6 100644 --- a/app/views/files/_project_list.html.erb +++ b/app/views/files/_project_list.html.erb @@ -1,12 +1,12 @@ <% delete_allowed = User.current.allowed_to?(:manage_files, project) %> <% project_attachments.each do |file| %> <% if file.is_public? || User.current.member_of?(project) || User.current.admin? %> -
-
+
+
<%= link_to image_tag(url_to_avatar(file.author), :width => 50, :height => 50), user_path(file.author) %>
-
+
<%# 如果有历史版本则提供历史版本下载 %> <% if file.attachment_histories.count == 0 %>