diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-26 18:15:58 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-26 18:15:58 +0000 |
commit | 328df74dd1779963b80317b72e56aa2a4ea5e2f2 (patch) | |
tree | bc34c905768eeae2106de016d9887ba106c14a8a /app/views/timelog/_list.rhtml | |
parent | 792b7f30e32eec84d6106e947fc3987e4e26a0b0 (diff) | |
download | redmine-328df74dd1779963b80317b72e56aa2a4ea5e2f2.tar.gz redmine-328df74dd1779963b80317b72e56aa2a4ea5e2f2.zip |
Adds date range filter and pagination on time entries detail view (closes #434).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1173 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/timelog/_list.rhtml')
-rw-r--r-- | app/views/timelog/_list.rhtml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app/views/timelog/_list.rhtml b/app/views/timelog/_list.rhtml new file mode 100644 index 000000000..929d8f7dd --- /dev/null +++ b/app/views/timelog/_list.rhtml @@ -0,0 +1,32 @@ +<table class="list time-entries"> +<thead> +<%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %> +<%= sort_header_tag('user_id', :caption => l(:label_member)) %> +<%= sort_header_tag('activity_id', :caption => l(:label_activity)) %> +<%= sort_header_tag('issue_id', :caption => l(:label_issue), :default_order => 'desc') %> +<th><%= l(:field_comments) %></th> +<%= sort_header_tag('hours', :caption => l(:field_hours)) %> +<th></th> +</thead> +<tbody> +<% entries.each do |entry| -%> +<tr class="time-entry <%= cycle("odd", "even") %>"> +<td class="spent_on"><%= format_date(entry.spent_on) %></td> +<td class="user"><%= entry.user.name %></td> +<td class="activity"><%= entry.activity.name %></td> +<td class="subject"> + <% if entry.issue -%> + <div class="tooltip"><%= link_to_issue entry.issue %>: <%= h(truncate(entry.issue.subject, 50)) -%> + <span class="tip"><%= render_issue_tooltip entry.issue %></span> + </div> + <% end -%> +</td> +<td class="comments"><%=h entry.comments %></td> +<td class="hours"><%= entry.hours %></td> +<td align="center"><%= link_to_if_authorized(l(:button_edit), + {:controller => 'timelog', :action => 'edit', :id => entry}, + :class => 'icon icon-edit') if entry.editable_by?(User.current) %></td> +</tr> +<% end -%> +</tbdoy> +</table> |