Commit 4dc7f662 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Added issue subject to the time entries view and subject + tracker to the csv…

Added issue subject to the time entries view and subject + tracker to the csv export (#616). Default order on date column set to desc.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1142 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent a2626bbc
...@@ -151,6 +151,8 @@ private ...@@ -151,6 +151,8 @@ private
l(:field_user), l(:field_user),
l(:field_activity), l(:field_activity),
l(:field_issue), l(:field_issue),
l(:field_tracker),
l(:field_subject),
l(:field_hours), l(:field_hours),
l(:field_comments) l(:field_comments)
] ]
...@@ -158,9 +160,11 @@ private ...@@ -158,9 +160,11 @@ private
# csv lines # csv lines
@entries.each do |entry| @entries.each do |entry|
fields = [l_date(entry.spent_on), fields = [l_date(entry.spent_on),
entry.user.name, entry.user,
entry.activity.name, entry.activity,
(entry.issue ? entry.issue.id : nil), (entry.issue ? entry.issue.id : nil),
(entry.issue ? entry.issue.tracker : nil),
(entry.issue ? entry.issue.subject : nil),
entry.hours, entry.hours,
entry.comments entry.comments
] ]
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<% unless @entries.empty? %> <% unless @entries.empty? %>
<table class="list"> <table class="list">
<thead> <thead>
<%= sort_header_tag('spent_on', :caption => l(:label_date)) %> <%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %>
<%= sort_header_tag('user_id', :caption => l(:label_member)) %> <%= sort_header_tag('user_id', :caption => l(:label_member)) %>
<%= sort_header_tag('activity_id', :caption => l(:label_activity)) %> <%= sort_header_tag('activity_id', :caption => l(:label_activity)) %>
<%= sort_header_tag('issue_id', :caption => l(:label_issue)) %> <%= sort_header_tag('issue_id', :caption => l(:label_issue)) %>
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
<td align="center"><%= format_date(entry.spent_on) %></td> <td align="center"><%= format_date(entry.spent_on) %></td>
<td align="center"><%= entry.user.name %></td> <td align="center"><%= entry.user.name %></td>
<td align="center"><%= entry.activity.name %></td> <td align="center"><%= entry.activity.name %></td>
<td align="center"> <td>
<% if entry.issue %> <% if entry.issue %>
<div class="tooltip"> <div class="tooltip">
<%= link_to_issue entry.issue %> <%= link_to_issue entry.issue %>: <%= h(truncate(entry.issue.subject, 50)) %>
<span class="tip"> <span class="tip">
<%= render_issue_tooltip entry.issue %> <%= render_issue_tooltip entry.issue %>
</span> </span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment