pull requtst show
This commit is contained in:
parent
d286d3fe06
commit
20bdd23665
|
@ -9,7 +9,8 @@ class PullRequestsController < ApplicationController
|
|||
end
|
||||
|
||||
def new
|
||||
|
||||
# id = params[:]
|
||||
@request = @g.merge_request(@rpoject.gpid, id)
|
||||
end
|
||||
|
||||
# Creates a merge request.
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
<% @requests.each do |request| %>
|
||||
<li>
|
||||
<% request %>
|
||||
<a href="javascript:void(0);" class="linkGrey3 fb fl"><%= request.title %></a>
|
||||
<a href="javascript:void(0);" class="fr fontGrey2 fb"><img src="/images/comments.png" class="mr5" width="15" />0</a><span class="fr mr15 fb fontGrey2">关闭</span>
|
||||
<%=link_to request.title, project_pull_request_path(request.id, :project_id => @project.id), :class => "linkGrey3 fb fl"%>
|
||||
<!--<a href="javascript:void(0);" class="fr fontGrey2 fb"><img src="/images/comments.png" class="mr5" width="15" />0</a><span class="fr mr15 fb fontGrey2">关闭</span>-->
|
||||
<div class="cl mb5"></div>
|
||||
<span class="fontGrey2">#5 · <a href="javascript:void(0);" class="link-blue"><%= request.author.try(:username) %></a> 创建于<%= time_tag(request.created_at) %></span>
|
||||
<span class="fontGrey2">#5 · <%= link_to request.author.try(:username), user_path(request.author), :class => "link-blue" %> 创建于<%= time_tag(request.created_at) %></span>
|
||||
<span class="fr fontGrey2"><%= time_tag(request.updated_at) %>更新</span>
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue