diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 6d5a058dc..3b9a0f8eb 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -80,7 +80,7 @@ module ApplicationHelper subject = truncate(subject, :length => options[:truncate]) end end - s = link_to "#{issue.tracker} ##{issue.id}", {:controller => "issues", :action => "show", :id => issue}, + s = link_to "#{h(issue.tracker)} ##{issue.id}", {:controller => "issues", :action => "show", :id => issue}, :class => issue.css_classes, :title => title s << ": #{h subject}" if subject diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 9cdf3f64f..1f074e20c 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -17,11 +17,11 @@ - + - + @@ -29,7 +29,7 @@ - + <% if User.current.allowed_to?(:view_time_entries, @project) %>
<%=l(:field_status)%>:<%= @issue.status.name %><%=l(:field_status)%>:<%= h(@issue.status.name) %> <%=l(:field_start_date)%>:<%= format_date(@issue.start_date) %>
<%=l(:field_priority)%>:<%= @issue.priority.name %><%=l(:field_priority)%>:<%= h(@issue.priority.name) %> <%=l(:field_due_date)%>:<%= format_date(@issue.due_date) %>
<%=l(:field_done_ratio)%>:<%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %>
<%=l(:field_category)%>:<%=h @issue.category ? @issue.category.name : "-" %><%=l(:field_category)%>:<%=h(@issue.category ? @issue.category.name : "-") %><%=l(:label_spent_time)%>: <%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}) : "-" %>