Files
Redmine/app/views/issues/tabs/_time_entries.html.erb
2025-07-14 21:33:33 +00:00

35 lines
1.4 KiB
Plaintext

<% for time_entry in time_entries %>
<div id="time-entry-<%= time_entry.id %>" class="time_entry journal">
<h4 class="journal-header">
<span class="journal-info">
<%= avatar(time_entry.user, :size => "24") %>
<%= authoring time_entry.created_on, time_entry.user, :label => :label_added_time_by %>
</span>
<% if time_entry.editable_by?(User.current) -%>
<span class="journal-meta">
<%= link_to sprite_icon('edit', l(:button_edit)), edit_time_entry_path(time_entry),
:title => l(:button_edit),
:class => 'icon-only icon-edit' %>
<%= link_to sprite_icon('del', l(:button_delete)), time_entry_path(time_entry),
:data => { :confirm => l(:text_are_you_sure) },
:method => :delete,
:title => l(:button_delete),
:class => 'icon-only icon-del' %>
</span>
<% end -%>
</h4>
<div class="journal-content">
<ul class="journal-details">
<li>
<strong><%= l(:label_time_entry_plural) %></strong>:
<%= l_hours_short time_entry.hours %>
</li>
</ul>
<div class="journal-note">
<%= time_entry.comments %>
</div>
</div>
</div>
<%= call_hook(:view_issues_history_time_entry_bottom, { :time_entry => time_entry }) %>
<% end %>