点击用户将id改为用户名

This commit is contained in:
daiao 2016-11-11 17:59:34 +08:00
parent 1ec0100386
commit 753da4b078
3 changed files with 4 additions and 3 deletions

View File

@ -61,7 +61,7 @@
<li class="clear"> <li class="clear">
<span class="pro_new_conbox_leftspan fl">指派给</span> <span class="pro_new_conbox_leftspan fl">指派给</span>
<span class="pro_new_conbox_rightspan fl ml10"> <span class="pro_new_conbox_rightspan fl ml10">
<a href="<%= @issue.assigned_to_id.nil? ? "javascript:void(0)" : user_path(@issue.assigned_to_id) %>" class="c_blue" ><%= @issue.assigned_to ? @issue.assigned_to.show_name : "--" %></a></span> <a href="<%= @issue.assigned_to_id.nil? ? "javascript:void(0)" : user_path(@issue.assigned_to) %>" class="c_blue" ><%= @issue.assigned_to ? @issue.assigned_to.show_name : "--" %></a></span>
</li> </li>
<% end %> <% end %>
<% unless @issue.disabled_core_fields.include?('fixed_version_id') %> <% unless @issue.disabled_core_fields.include?('fixed_version_id') %>

View File

@ -23,7 +23,8 @@
</li> </li>
<div class="cl mb10"></div> <div class="cl mb10"></div>
</ul> </ul>
<a href="javascript:void(0);" class="fr sy_btn_grey " onclick="pro_st_show_ban1();">取消</a><a href="javascript:void(0);" onclick="project_version_commit();" class="fr sy_btn_blue mr5">保存</a> <a href="javascript:void(0);" class="fr sy_btn_grey " onclick="pro_st_show_ban1();">取消</a>
<a href="javascript:void(0);" onclick="project_version_commit();" class="fr sy_btn_blue mr5">保存</a>
</div> </div>
<% end %> <% end %>
<script> <script>

View File

@ -70,7 +70,7 @@
<td>#<%= issue.id %></td> <td>#<%= issue.id %></td>
<td><a href="<%= issue_path(issue) %>" class="new_roadmap_info_title" title="<%= issue.subject %>" target="_blank"><%= issue.subject %></a> </td> <td><a href="<%= issue_path(issue) %>" class="new_roadmap_info_title" title="<%= issue.subject %>" target="_blank"><%= issue.subject %></a> </td>
<td> <%= issue.tracker %> </td> <td> <%= issue.tracker %> </td>
<td><a href="<%= issue.assigned_to_id.nil? ? "" : user_path(issue.assigned_to_id) %>" class="new_roadmap_info_name" target="_blank"> <td><a href="<%= issue.assigned_to_id.nil? ? "" : user_path(issue.assigned_to) %>" class="new_roadmap_info_name" target="_blank">
<%= User.find(issue.try(:assigned_to_id)).nil? ? "" : User.find(issue.try(:assigned_to_id)).show_name %></a> <%= User.find(issue.try(:assigned_to_id)).nil? ? "" : User.find(issue.try(:assigned_to_id)).show_name %></a>
</td> </td>
<td><%= format_time issue.updated_on %></td> <td><%= format_time issue.updated_on %></td>