l(:field_user),
l(:field_activity),
l(:field_issue),
+ l(:field_tracker),
+ l(:field_subject),
l(:field_hours),
l(:field_comments)
]
# csv lines
@entries.each do |entry|
fields = [l_date(entry.spent_on),
- entry.user.name,
- entry.activity.name,
+ entry.user,
+ entry.activity,
(entry.issue ? entry.issue.id : nil),
+ (entry.issue ? entry.issue.tracker : nil),
+ (entry.issue ? entry.issue.subject : nil),
entry.hours,
entry.comments
]
<% unless @entries.empty? %>\r
<table class="list">\r
<thead>\r
-<%= sort_header_tag('spent_on', :caption => l(:label_date)) %>\r
+<%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %>\r
<%= sort_header_tag('user_id', :caption => l(:label_member)) %>\r
<%= sort_header_tag('activity_id', :caption => l(:label_activity)) %>\r
<%= sort_header_tag('issue_id', :caption => l(:label_issue)) %>\r
<td align="center"><%= format_date(entry.spent_on) %></td>\r
<td align="center"><%= entry.user.name %></td>\r
<td align="center"><%= entry.activity.name %></td>\r
-<td align="center">\r
+<td>\r
<% if entry.issue %>\r
<div class="tooltip">\r
- <%= link_to_issue entry.issue %>\r
+ <%= link_to_issue entry.issue %>: <%= h(truncate(entry.issue.subject, 50)) %>\r
<span class="tip">\r
<%= render_issue_tooltip entry.issue %>\r
</span> \r