Project

General

Profile

Patch #2268 » total_estimated_hour.diff

Ewan Makepeace, 2008-12-03 04:55

View differences:

_list.rhtml (working copy)
10 10
        <% end %>
11 11
	</tr></thead>
12 12
	<tbody>
13
	<% hours=0;%>
13 14
	<% issues.each do |issue| -%>
14 15
	<tr id="issue-<%= issue.id %>" class="issue hascontextmenu <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>">
15 16
	    <td class="checkbox"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td>
16 17
		<td><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
17 18
        <% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.name %><% end %>
18 19
	</tr>
20
	<% temp=issue.send("estimated_hours"); %>
21
        <%  if(!temp.nil?)%>
22
            <% hours+=temp;%>
23
        <%  end -%>
19 24
	<% end -%>
20 25
	</tbody>
21 26
</table>
27
<p align="right">Total Estimated Hours:<b> <%=hours%></b></p>
22 28
<% end -%>
(1-1/5)