Created
October 31, 2014 18:56
-
-
Save anonymous/ca050f77fab551d1b60b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | |
diff --git a/config/environments/development.rb b/config/environments/development.rb | |
index 6d01df7..9da4c72 100644 | |
--- a/config/environments/development.rb | |
+++ b/config/environments/development.rb | |
@@ -3,7 +3,7 @@ | |
# In the development environment your application's code is reloaded on | |
# every request. This slows down response time but is perfect for development | |
# since you don't have to restart the webserver when you make code changes. | |
-config.cache_classes = true | |
+config.cache_classes = false | |
# Log error messages when you accidentally call methods on nil. | |
config.whiny_nils = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment