Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dergachev/80212b035efecdb252be to your computer and use it in GitHub Desktop.
Save dergachev/80212b035efecdb252be to your computer and use it in GitHub Desktop.
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml
index cfe0288..b8fffa0 100644
--- a/app/views/issues/show.rhtml
+++ b/app/views/issues/show.rhtml
@@ -25,11 +25,29 @@
<th class="due-date"><%=l(:field_due_date)%>:</th><td class="due-date"><%= format_date(@issue.due_date) %></td>
</tr>
<tr>
- <th class="assigned-to"><%=l(:field_assigned_to)%>:</th><td class="assigned-to"><%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td>
+ <th class="assigned-to"><%=l(:field_assigned_to)%>:</th><td class="assigned-to">
+ <%= avatar(@issue.assigned_to, :size => "14") %>
+ <%= @issue.assigned_to ? link_to(@issue.assigned_to, {
+ :controller => 'issues',
+ :action => 'index',
+ :project_id => @project,
+ :set_filter => 1,
+ :fixed_version_id => @issue.fixed_version,
+ :assigned_to_id => @issue.assigned_to }): "-" %>
+ </td>
<th class="progress"><%=l(:field_done_ratio)%>:</th><td class="progress"><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td>
</tr>
<tr>
- <th class="category"><%=l(:field_category)%>:</th><td class="category"><%=h @issue.category ? @issue.category.name : "-" %></td>
+ <th class="category"><%=l(:field_category)%>:</th><td class="category">
+ <%= @issue.category ? link_to (@issue.category, {
+ :controller => 'issues',
+ :action => 'index',
+ :project_id => @project,
+ :set_filter => 1,
+ :fixed_version_id => @issue.fixed_version,
+ :category_id => @issue.category }): "-" %>
+
+ </td>
<% if User.current.allowed_to?(:view_time_entries, @project) %>
<th class="spent-time"><%=l(:label_spent_time)%>:</th>
<td class="spent-time"><%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}) : "-" %></td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment