From 90f1d3c528a40d6be9610f7ea2bc8a05e4433b8f Mon Sep 17 00:00:00 2001 From: yanxd Date: Mon, 20 Jan 2014 08:44:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E6=8A=A5=E8=A1=A8=E6=94=BE?= =?UTF-8?q?=E7=9D=80=E4=B8=8D=E7=90=86=20=E6=8C=89=E9=92=AE=E6=90=9E?= =?UTF-8?q?=E5=87=BA=E6=9D=A5=E4=B8=8D=E8=83=BD=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/files/index.html.erb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index cd659871..eb75536d 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -53,14 +53,11 @@
<% if @project.project_type == 1 %> - <% if User.current.member_of?(@project) %> - - <%= link_to(l(:label_file_upload), new_project_file_path(@project), :class => 'icon icon-add') if User.current.member_of?(@project) %> - <% end %> + <% label_str = l(:label_file_upload) %> <% else %> - <%= link_to(l(:label_attachment_new), new_project_file_path(@project), :class => 'icon icon-add') if User.current.allowed_to?(:manage_files, @project) %> - + <% label_str = l(:label_attachment_new) %> <% end %> +<%= link_to(l(:label_attachment_new), new_project_file_path(@project), :class => 'icon icon-add') if User.current.allowed_to?(:manage_files, @project) %>
<%=(@project.project_type == 1) ? t(:label_user_course) : t(:label_project) %>文件共享专区 <% delete_allowed = User.current.allowed_to?(:manage_files, @project) %>