2016-09-23 10:36:47 +08:00
|
|
|
|
2015-04-27 16:54:46 +08:00
|
|
|
<!--关注:非项目成员-->
|
2016-09-23 10:36:47 +08:00
|
|
|
<%= render :partial => "projects/applied_status" %>
|
|
|
|
|
2015-04-27 15:39:36 +08:00
|
|
|
<!--配置项目-->
|
2015-04-21 16:35:51 +08:00
|
|
|
<% if User.current.admin? || User.current.allowed_to?({:controller => 'projects', :action => 'settings'}, @project) %>
|
2016-09-23 10:36:47 +08:00
|
|
|
<%= link_to "#{l(:button_configure)}", settings_project_path(@project), :class => "sy_btn_blue mr5" %>
|
2015-04-27 11:42:01 +08:00
|
|
|
<% end %>
|
2015-04-27 15:39:36 +08:00
|
|
|
<!--项目类型-->
|
2016-09-23 10:36:47 +08:00
|
|
|
<!--<%# if (User.current.login? && User.current.member_of?(@project) && Member.where(:user_id => User.current.id, :project_id => @project.id).first.roles.to_s.include?("Manager")) || User.current.admin? %>-->
|
|
|
|
<!--<%#= link_to "<span class='#{typeclass}'></span>#{text}".html_safe,"javascript:void(0)" ,:onClick => "show_window();", :class => "pr_join_a",:id => "setting_project_type"%>-->
|
|
|
|
<!--<%# end %>-->
|
2015-04-27 15:39:36 +08:00
|
|
|
<!--退出项目-->
|
2015-04-29 14:57:12 +08:00
|
|
|
<% if (User.current.member_of? @project) && User.current.login? && !User.current.admin &&
|
2015-04-30 07:46:07 +08:00
|
|
|
!Member.where(:user_id => User.current.id, :project_id => @project.id).first.roles.to_s.include?("Manager") %>
|
2015-04-27 11:42:01 +08:00
|
|
|
<%= exit_project_link(@project) %>
|
2014-09-28 17:14:09 +08:00
|
|
|
<% end %>
|
2016-09-23 10:36:47 +08:00
|
|
|
|