|
1 | 1 | <%= render :partial => 'action_menu' %>
|
2 | 2 |
|
3 |
| -<h2><%= issue_heading(@issue) %> <%= " - Attention il y a un risque!" if @issue.has_risk? %></h2> |
| 3 | +<h2><%= l(:label_warning_risk) if @issue.has_risk? %> <%= issue_heading(@issue) %></h2> |
4 | 4 |
|
5 | 5 | <div class="<%= @issue.css_classes %> details">
|
6 |
| - <%= avatar(@issue.author, :size => "50") %> |
7 |
| - |
8 |
| -<div class="subject"> |
9 |
| -<%= render_issue_subject_with_tree(@issue) %> |
10 |
| -</div> |
| 6 | + <%= avatar(@issue.author, :size => "50") %> |
| 7 | + <div class="subject"> |
| 8 | + <%= render_issue_subject_with_tree(@issue) %> |
| 9 | + </div> |
11 | 10 |
|
12 | 11 | <p class="author">
|
13 |
| - <%= authoring @issue.created_on, @issue.author %>. |
14 |
| - <% if @issue.created_on != @issue.updated_on %> |
15 |
| - <%= l(:label_updated_time, time_tag(@issue.updated_on)) %>. |
16 |
| - <% end %> |
17 |
| - |
| 12 | + <%= authoring @issue.created_on, @issue.author %>. |
| 13 | + <% if @issue.created_on != @issue.updated_on %> |
| 14 | + <%= l(:label_updated_time, time_tag(@issue.updated_on)) %>. |
| 15 | + <% end %> |
18 | 16 | </p>
|
19 | 17 |
|
20 |
| - |
21 |
| -<table class="attributes"> |
22 |
| -<tr> |
23 |
| - <th class="status"><%=l(:field_status)%>:</th><td class="status"><%= @issue.status.name %></td> |
24 |
| - <th class="start-date"><%=l(:field_start_date)%>:</th><td class="start-date"><%= format_date(@issue.start_date) %></td> |
25 |
| -</tr> |
26 |
| -<tr> |
27 |
| - <th class="priority"><%=l(:field_priority)%>:</th><td class="priority"><%= @issue.priority.name %></td> |
28 |
| - <th class="due-date"><%=l(:field_due_date)%>:</th><td class="due-date"><%= format_date(@issue.due_date) %></td> |
29 |
| -</tr> |
30 |
| -<tr> |
31 |
| - <th class="assigned-to"><%=l(:field_assigned_to)%>:</th><td class="assigned-to"><%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td> |
32 |
| - <th class="progress"><%=l(:field_done_ratio)%>:</th><td class="progress"><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td> |
33 |
| -</tr> |
34 |
| -<tr> |
35 |
| - <th class="category"><%=l(:field_category)%>:</th><td class="category"><%=h @issue.category ? @issue.category.name : "-" %></td> |
36 |
| - <% if User.current.allowed_to?(:view_time_entries, @project) %> |
37 |
| - <th class="spent-time"><%=l(:label_spent_time)%>:</th> |
38 |
| - <td class="spent-time"> |
39 |
| - <% if @issue.spent_hours > 0 %> |
40 |
| - <%= l(:label_estimated, {:value => "%.2f" % @issue.spent_time, :unit => @issue.default_unit_time }) %> |
41 |
| - (<%= link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue} %>) |
42 |
| - <% end #if %> |
43 |
| - </td> |
44 |
| - <% end %> |
45 |
| -</tr> |
46 |
| -<tr> |
47 |
| - <th class="fixed-version"><%=l(:field_fixed_version)%>:</th> |
48 |
| - <td class="fixed-version"><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td> |
49 |
| - <% if @issue.estimated_hours %> |
50 |
| - <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th> |
51 |
| - <td class="estimated-hours"><%= l(:label_estimated, {:value =>@issue.estimated_time, :unit => @issue.default_unit_time } ) %> |
52 |
| - (<%= l_hours(@issue.estimated_hours) %>)</td> |
53 |
| - <% end %> |
54 |
| -</tr> |
55 |
| -<%= render_custom_fields_rows(@issue) %> |
56 |
| -<%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> |
57 |
| -</table> |
58 |
| -
|
59 |
| -<% if @issue.description? || @issue.attachments.any? -%> |
60 |
| -<hr /> |
61 |
| -<% if @issue.description? %> |
62 |
| - <div class="contextual"> |
63 |
| - <%= link_to_remote_if_authorized(l(:button_quote), { :url => {:controller => 'journals', :action => 'new', :id => @issue} }, :class => 'icon icon-comment') %> |
64 |
| - </div> |
| 18 | + <table class="attributes"> |
| 19 | + <tr> |
| 20 | + <th class="status"><%=l(:field_status)%>:</th><td class="status"><%= @issue.status.name %></td> |
| 21 | + <th class="start-date"><%=l(:field_start_date)%>:</th><td class="start-date"><%= format_date(@issue.start_date) %></td> |
| 22 | + </tr> |
| 23 | + <tr> |
| 24 | + <th class="priority"><%=l(:field_priority)%>:</th><td class="priority"><%= @issue.priority.name %></td> |
| 25 | + <th class="due-date"><%=l(:field_due_date)%>:</th><td class="due-date"><%= format_date(@issue.due_date) %></td> |
| 26 | + </tr> |
| 27 | + <tr> |
| 28 | + <th class="assigned-to"><%=l(:field_assigned_to)%>:</th><td class="assigned-to"><%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td> |
| 29 | + <th class="progress"><%=l(:field_done_ratio)%>:</th><td class="progress"><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td> |
| 30 | + </tr> |
| 31 | + <tr> |
| 32 | + <th class="category"><%=l(:field_category)%>:</th><td class="category"><%=h @issue.category ? @issue.category.name : "-" %></td> |
| 33 | + <% if User.current.allowed_to?(:view_time_entries, @project) %> |
| 34 | + <th class="spent-time"><%=l(:label_spent_time)%>:</th> |
| 35 | + <td class="spent-time"> |
| 36 | + <% if @issue.spent_hours > 0 %> |
| 37 | + <%= l(:label_estimated, {:value => "%.2f" % @issue.spent_time, :unit => @issue.default_unit_time }) %> |
| 38 | + (<%= link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue} %>) |
| 39 | + <% end #if %> |
| 40 | + </td> |
| 41 | + <% end %> |
| 42 | + </tr> |
| 43 | + <tr> |
| 44 | + <th class="fixed-version"><%=l(:field_fixed_version)%>:</th> |
| 45 | + <td class="fixed-version"><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td> |
| 46 | + <% if @issue.estimated_hours %> |
| 47 | + <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th> |
| 48 | + <td class="estimated-hours"><%= l(:label_estimated, {:value =>@issue.estimated_time, :unit => @issue.default_unit_time } ) %> |
| 49 | + (<%= l_hours(@issue.estimated_hours) %>)</td> |
| 50 | + <% end %> |
| 51 | + </tr> |
| 52 | + <%= render_custom_fields_rows(@issue) %> |
| 53 | + <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> |
| 54 | + </table> |
| 55 | +
|
| 56 | + <% if @issue.description? || @issue.attachments.any? -%> |
| 57 | + <hr /> |
| 58 | + <% if @issue.description? %> |
| 59 | + <div class="contextual"> |
| 60 | + <%= link_to_remote_if_authorized(l(:button_quote), { :url => {:controller => 'journals', :action => 'new', :id => @issue} }, :class => 'icon icon-comment') %> |
| 61 | + </div> |
65 | 62 |
|
66 |
| - <p><strong><%=l(:field_description)%></strong></p> |
| 63 | + <p><strong><%=l(:field_description)%></strong></p> |
67 | 64 | <div class="wiki">
|
68 | 65 | <%= textilizable @issue, :description, :attachments => @issue.attachments %>
|
69 | 66 | </div>
|
|
0 commit comments