|
|
@@ -19,36 +19,36 @@ |
|
|
|
<% end %> |
|
|
|
</p> |
|
|
|
|
|
|
|
<table width="100%"> |
|
|
|
<table class="attributes"> |
|
|
|
<tr> |
|
|
|
<td style="width:15%" class="status"><b><%=l(:field_status)%>:</b></td><td style="width:35%" class="status"><%= @issue.status.name %></td> |
|
|
|
<td style="width:15%" class="start-date"><b><%=l(:field_start_date)%>:</b></td><td style="width:35%"><%= format_date(@issue.start_date) %></td> |
|
|
|
<th class="status"><%=l(:field_status)%>:</th><td class="status"><%= @issue.status.name %></td> |
|
|
|
<th class="start-date"><%=l(:field_start_date)%>:</th><td><%= format_date(@issue.start_date) %></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="priority"><b><%=l(:field_priority)%>:</b></td><td class="priority"><%= @issue.priority.name %></td> |
|
|
|
<td class="due-date"><b><%=l(:field_due_date)%>:</b></td><td class="due-date"><%= format_date(@issue.due_date) %></td> |
|
|
|
<th class="priority"><%=l(:field_priority)%>:</th><td class="priority"><%= @issue.priority.name %></td> |
|
|
|
<th class="due-date"><%=l(:field_due_date)%>:</th><td class="due-date"><%= format_date(@issue.due_date) %></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="assigned-to"><b><%=l(:field_assigned_to)%>:</b></td><td><%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td> |
|
|
|
<td class="progress"><b><%=l(:field_done_ratio)%>:</b></td><td class="progress"><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td> |
|
|
|
<th class="assigned-to"><%=l(:field_assigned_to)%>:</th><td><%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td> |
|
|
|
<th class="progress"><%=l(:field_done_ratio)%>:</th><td class="progress"><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="category"><b><%=l(:field_category)%>:</b></td><td><%=h @issue.category ? @issue.category.name : "-" %></td> |
|
|
|
<th class="category"><%=l(:field_category)%>:</th><td><%=h @issue.category ? @issue.category.name : "-" %></td> |
|
|
|
<% if User.current.allowed_to?(:view_time_entries, @project) %> |
|
|
|
<td class="spent-time"><b><%=l(:label_spent_time)%>:</b></td> |
|
|
|
<th class="spent-time"><%=l(:label_spent_time)%>:</th> |
|
|
|
<td class="spent-hours"><%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue}) : "-" %></td> |
|
|
|
<% end %> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="fixed-version"><b><%=l(:field_fixed_version)%>:</b></td><td><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td> |
|
|
|
<th class="fixed-version"><%=l(:field_fixed_version)%>:</th><td><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td> |
|
|
|
<% if @issue.estimated_hours %> |
|
|
|
<td class="estimated-hours"><b><%=l(:field_estimated_hours)%>:</b></td><td><%= l_hours(@issue.estimated_hours) %></td> |
|
|
|
<th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td><%= l_hours(@issue.estimated_hours) %></td> |
|
|
|
<% end %> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<% n = 0 -%> |
|
|
|
<% @issue.custom_field_values.each do |value| -%> |
|
|
|
<td valign="top"><b><%=h value.custom_field.name %>:</b></td><td valign="top"><%= simple_format(h(show_value(value))) %></td> |
|
|
|
<th><%=h value.custom_field.name %>:</th><td><%= simple_format_without_paragraph(h(show_value(value))) %></td> |
|
|
|
<% n = n + 1 |
|
|
|
if (n > 1) |
|
|
|
n = 0 %> |