pull request 未改动及已合并提醒

This commit is contained in:
huang 2016-11-25 15:15:29 +08:00
parent b15fd1607f
commit 25ffa16c06
1 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,11 @@
<% if @request.state == "closed" %>
该请求已被关闭
<div class="alert alert-orange mb15 ">
该请求已被关闭
</div>
<% elsif @commits_count == 0 %>
项目分支 <%= @request.source_branch %> 和 <%= @request.target_branch %> 似乎没有差异,请将新改动提交至源分支或者切换到其它目标分支
<div class="alert alert-orange mb15 ">
项目分支 <%= @request.source_branch %> 和 <%= @request.target_branch %> 似乎没有差异,请将新改动提交至源分支或者切换到其它目标分支
</div>
<% else %>
<% if is_project_manager?(User.current.id, @project.id) %>
<div class="alert alert-orange mb15 ">