<% if !entries.empty? %> <% @totalHours=0 %> <% entries.each do |entry| %> <% @totalHours = @totalHours + entry.hours%> "> <% end %>
<%= l(:label_activity) %> <%= l(:label_issue) %> <%= l(:field_comments) %> <%= l(:field_hours) %>
<%= entry.activity.name %> <% if entry.issue %>
<%= link_to_issue entry.issue %> <%= render_issue_tooltip entry.issue %>
<% end %>
<%=h entry.comments %> <%= entry.hours %> <%= link_to(l(:button_edit), {:controller => 'timelog', :action => 'edit', :id => entry}, :class => "icon icon-edit")%>
Total: <%= @totalHours %>
<% else %> <%=l(:label_no_data)%> <% end %>