kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.9 KiB
47 lines
1.9 KiB
15 years ago
|
<table class="list cost_entries">
|
||
15 years ago
|
<thead>
|
||
|
<tr>
|
||
|
<%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %>
|
||
|
<%= sort_header_tag('user', :caption => l(:label_member)) %>
|
||
|
<%= sort_header_tag('project', :caption => l(:label_project)) %>
|
||
|
<%= sort_header_tag('issue', :caption => l(:label_issue), :default_order => 'desc') %>
|
||
|
<th><%= l(:field_comments) %></th>
|
||
|
<%= sort_header_tag('units', :caption => l(:label_units)) %>
|
||
|
<%= sort_header_tag('costs', :caption => l(:label_overall_costs)) %>
|
||
|
<th></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% entries.each do |entry| -%>
|
||
15 years ago
|
<tr class="cost_entry <%= cycle("odd", "even") %>">
|
||
15 years ago
|
<td class="spent_on"><%= format_date(entry.spent_on) %></td>
|
||
|
<td class="user"><%=h entry.user %></td>
|
||
|
<td class="project"><%=h entry.project %></td>
|
||
|
<td class="subject">
|
||
|
<% if entry.issue -%>
|
||
15 years ago
|
<%= link_to_issue entry.issue -%>
|
||
15 years ago
|
<% end -%>
|
||
|
</td>
|
||
|
|
||
|
<td class="comments"><%=h entry.comments %></td>
|
||
|
<td class="units"><%= pluralize(entry.units, entry.cost_type.unit, entry.cost_type.unit_plural) %></td>
|
||
15 years ago
|
<td class="currency">
|
||
15 years ago
|
<% if entry.costs_visible_by?(User.current) -%>
|
||
15 years ago
|
<%= number_to_currency entry.real_costs %>
|
||
15 years ago
|
<%- else -%>-<% end -%>
|
||
|
</td>
|
||
|
<td align="center">
|
||
|
<% if entry.editable_by?(User.current) -%>
|
||
|
<%= link_to image_tag('edit.png'), {:controller => 'costlog', :action => 'edit', :id => entry, :project_id => nil},
|
||
|
:title => l(:button_edit) %>
|
||
|
<%= link_to image_tag('delete.png'), {:controller => 'costlog', :action => 'destroy', :id => entry, :project_id => nil},
|
||
|
:confirm => l(:text_are_you_sure),
|
||
|
:method => :post,
|
||
|
:title => l(:button_delete) %>
|
||
|
<% end -%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end -%>
|
||
|
</tbody>
|
||
|
</table>
|