局部刷新
This commit is contained in:
parent
60417b2db7
commit
153efb7eda
|
@ -1,12 +1,8 @@
|
|||
<div class="pr_info_join fl">
|
||||
<!--关注:非项目成员-->
|
||||
<% if !User.current.member_of?(@project) && User.current.login? && !User.current.admin %>
|
||||
<span><%= watcher_link_for_project(@project, User.current) %></span>
|
||||
<!--加入项目 -->
|
||||
<span id="join_in_project">
|
||||
<%= join_in_project_link(@project, User.current) %>
|
||||
</span>
|
||||
<% end %>
|
||||
<div id="join_in_project_applied">
|
||||
<%= render :partial => "projects/applied_status" %>
|
||||
</div>
|
||||
<!--配置项目-->
|
||||
<% if User.current.admin? || User.current.allowed_to?({:controller => 'projects', :action => 'settings'}, @project) %>
|
||||
<%= link_to "<span class='pr_setting'></span>#{l(:button_configure)}".html_safe, settings_project_path(@project), :class => "pr_join_a" %>
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<% if !User.current.member_of?(@project) && User.current.login? && !User.current.admin %>
|
||||
<span><%= watcher_link_for_project(@project, User.current) %></span>
|
||||
<!--加入项目 -->
|
||||
<% if AppliedProject.where(:user_id => User.current, :project_id => @project_id).first.nil? %>
|
||||
<%= join_in_project_link(@project, User.current) %>
|
||||
<% else %>
|
||||
等待审批
|
||||
<% end %>
|
||||
<% end %>
|
Loading…
Reference in New Issue