Project

General

Profile

Feature #615 » _list_simple.rhtml

David Petersen, 2008-02-07 19:30

 
1
<% if !entries.empty? %>
2
<table class="list">
3
<thead>
4
<th><%= l(:label_activity) %></th>
5
<th><%= l(:label_issue) %></th>
6
<th><%= l(:field_comments) %></th>
7
<th><%= l(:field_hours) %></th>
8
<th></th>
9
</thead>
10
<tbody>
11
<% entries.each do |entry| %>
12
<tr class="<%= cycle("odd", "even") %>">
13
<td align="center"><%= entry.activity.name %></td>
14
<td align="center">
15
    <% if entry.issue %>
16
    <div class="tooltip">
17
    <%= link_to_issue entry.issue %>
18
    <span class="tip">
19
    <%= render_issue_tooltip entry.issue %>
20
    </span>		
21
	</div>
22
	<% end %>
23
</td>
24
<td><%=h entry.comments %></td>
25
<td align="center"><strong><%= entry.hours %></strong></td>
26
<td align="center" style="width:55px;"><%= link_to(l(:button_edit), {:controller => 'timelog', :action => 'edit', :id => entry}, :class => "icon icon-edit")%></td>
27
</tr>
28
<% end %>
29
</tbody>
30
</table>
31
<% else %>
32
	<i><%=l(:label_no_data)%></i>
33
<% end %>
(4-4/7)