权限报表放着不理 按钮搞出来不能用

This commit is contained in:
yanxd 2014-01-20 08:44:48 +08:00
parent ae7949e8cc
commit 90f1d3c528
1 changed files with 3 additions and 6 deletions

View File

@ -53,14 +53,11 @@
<div class="content-title-top">
<% 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.allowed_to?(:manage_files, @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) %>
<!-- %= link_to(l(:label_attachment_new), new_project_file_path(@project), :class => 'icon icon-add') if User.current.member_of?(@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) %>
</div>
<span class="font_lighter file_table_des"><%=(@project.project_type == 1) ? t(:label_user_course) : t(:label_project) %>文件共享专区</span>
<% delete_allowed = User.current.allowed_to?(:manage_files, @project) %>