|
|
|
@ -40,12 +40,14 @@
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to "Pull Requests", project_pull_requests_path(@project), :class => "f14 c_blue02" %>
|
|
|
|
|
<% if allow_pull_request(@project) %>
|
|
|
|
|
<%= link_to "+新建请求", new_project_pull_request_path(:project_id => @project.id), :class => "subnav_green" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% if allow_pull_request(@project) %>
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to "Pull Requests", project_pull_requests_path(@project), :class => "f14 c_blue02" %>
|
|
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to "+新建请求", new_project_pull_request_path(:project_id => @project.id), :class => "subnav_green" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<%# --版本库被设置成私有、module中设置不显示、没有创建版本库 三种情况不显示-- %>
|
|
|
|
|
<% if visible_repository?(@project) %>
|
|
|
|
|