socialforge/app/views/layouts/_join_exit_project.html.erb

19 lines
1.1 KiB
Plaintext
Raw Normal View History

2016-09-23 10:36:47 +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" %>
<% 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
<!--退出项目-->
<% if (User.current.member_of? @project) && User.current.login? && !User.current.admin &&
!Member.where(:user_id => User.current.id, :project_id => @project.id).first.roles.to_s.include?("Manager") %>
<%= exit_project_link(@project) %>
<% end %>
2016-09-23 10:36:47 +08:00