pull request用户链接处理

This commit is contained in:
huang 2016-10-26 15:45:47 +08:00
parent 68ff26e3ef
commit f22b9eb35b
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
<p><%= @request.description %></p>
</div>
<div class="c_grey clear mt5">
<p class="fl">由 <a href="javascript:void(0);" class="linkBlue2 " ><%= @request.author.try(:username) %></a>于 <%= format_time(@request.created_at) %> 创建</p>
<p class="fl">由 <%= link_to @request.author.try(:username), user_path(get_user_by_login_and(@request.author.try(:username))), :class => "linkBlue2" %>于 <%= format_time(@request.created_at) %> 创建</p>
<span class="fl ml10">最近更新:<%= format_time(@request.updated_at) %></span>
<p class="fr"><%= @request.source_branch %><span class="c_grey02 ml10 mr10">合并到</span><%= @request.target_branch %></p>
</div>