show.rhtml
134 lines
| 5.3 KiB
| text/html+ruby
|
RhtmlLexer
|
r3005 | <%= render :partial => 'action_menu' %> | ||
|
r2 | |||
|
r736 | <h2><%= @issue.tracker.name %> #<%= @issue.id %></h2> | ||
|
r2602 | <div class="<%= @issue.css_classes %> details"> | ||
|
r3170 | <%= avatar(@issue.author, :size => "50") %> | ||
|
r3459 | |||
<div class="subject"> | ||||
<%= render_issue_subject_with_tree(@issue) %> | ||||
</div> | ||||
|
r720 | <p class="author"> | ||
|
r721 | <%= authoring @issue.created_on, @issue.author %>. | ||
|
r2703 | <% if @issue.created_on != @issue.updated_on %> | ||
<%= l(:label_updated_time, time_tag(@issue.updated_on)) %>. | ||||
<% end %> | ||||
|
r720 | </p> | ||
|
r736 | |||
|
r2721 | <table class="attributes"> | ||
|
r330 | <tr> | ||
|
r2721 | <th class="status"><%=l(:field_status)%>:</th><td class="status"><%= @issue.status.name %></td> | ||
|
r2951 | <th class="start-date"><%=l(:field_start_date)%>:</th><td class="start-date"><%= format_date(@issue.start_date) %></td> | ||
|
r330 | </tr> | ||
<tr> | ||||
|
r2721 | <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> | ||||
|
r330 | </tr> | ||
<tr> | ||||
|
r2951 | <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> | ||
|
r2721 | <th class="progress"><%=l(:field_done_ratio)%>:</th><td class="progress"><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td> | ||
|
r330 | </tr> | ||
<tr> | ||||
|
r2951 | <th class="category"><%=l(:field_category)%>:</th><td class="category"><%=h @issue.category ? @issue.category.name : "-" %></td> | ||
|
r720 | <% if User.current.allowed_to?(:view_time_entries, @project) %> | ||
|
r2721 | <th class="spent-time"><%=l(:label_spent_time)%>:</th> | ||
|
r2951 | <td class="spent-time"><%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue}) : "-" %></td> | ||
|
r720 | <% end %> | ||
</tr> | ||||
<tr> | ||||
|
r2951 | <th class="fixed-version"><%=l(:field_fixed_version)%>:</th><td class="fixed-version"><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td> | ||
|
r720 | <% if @issue.estimated_hours %> | ||
|
r2951 | <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td class="estimated-hours"><%= l_hours(@issue.estimated_hours) %></td> | ||
|
r720 | <% end %> | ||
|
r330 | </tr> | ||
|
r2722 | <%= render_custom_fields_rows(@issue) %> | ||
|
r1785 | <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> | ||
|
r330 | </table> | ||
<hr /> | ||||
|
r470 | |||
|
r1466 | <div class="contextual"> | ||
|
r2244 | <%= link_to_remote_if_authorized(l(:button_quote), { :url => {:action => 'reply', :id => @issue} }, :class => 'icon icon-comment') unless @issue.description.blank? %> | ||
|
r1466 | </div> | ||
|
r751 | <p><strong><%=l(:field_description)%></strong></p> | ||
|
r1022 | <div class="wiki"> | ||
|
r884 | <%= textilizable @issue, :description, :attachments => @issue.attachments %> | ||
|
r1022 | </div> | ||
|
r330 | |||
|
r2114 | <%= link_to_attachments @issue %> | ||
|
r751 | |||
|
r2535 | <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %> | ||
|
r3459 | <% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %> | ||
<hr /> | ||||
<div id="issue_tree"> | ||||
<div class="contextual"> | ||||
<%= link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => @project, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %> | ||||
</div> | ||||
|
r3463 | <p><strong><%=l(:label_subtask_plural)%></strong></p> | ||
|
r3459 | <%= render_descendants_tree(@issue) unless @issue.leaf? %> | ||
</div> | ||||
<% end %> | ||||
|
r3622 | <% if authorize_for('issue_relations', 'new') || @issue.relations.present? %> | ||
|
r736 | <hr /> | ||
<div id="relations"> | ||||
|
r503 | <%= render :partial => 'relations' %> | ||
</div> | ||||
<% end %> | ||||
|
r663 | </div> | ||
|
r736 | |||
|
r3622 | <% if @changesets.present? %> | ||
|
r1071 | <div id="issue-changesets"> | ||
<h3><%=l(:label_associated_revisions)%></h3> | ||||
|
r2455 | <%= render :partial => 'changesets', :locals => { :changesets => @changesets} %> | ||
|
r1071 | </div> | ||
<% end %> | ||||
|
r3622 | <% if @journals.present? %> | ||
|
r736 | <div id="history"> | ||
|
r610 | <h3><%=l(:label_history)%></h3> | ||
|
r3480 | <%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %> | ||
|
r330 | </div> | ||
|
r593 | <% end %> | ||
|
r3005 | |||
|
r1179 | <div style="clear: both;"></div> | ||
|
r3402 | <%= render :partial => 'action_menu', :locals => {:replace_watcher => 'watcher2' } %> | ||
|
r330 | |||
|
r3402 | <div style="clear: both;"></div> | ||
|
r1115 | <% if authorize_for('issues', 'edit') %> | ||
|
r1030 | <div id="update" style="display:none;"> | ||
<h3><%= l(:button_update) %></h3> | ||||
|
r1115 | <%= render :partial => 'edit' %> | ||
|
r330 | </div> | ||
|
r2 | <% end %> | ||
|
r686 | |||
|
r2331 | <% other_formats_links do |f| %> | ||
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> | ||||
<%= f.link_to 'PDF' %> | ||||
<% end %> | ||||
|
r704 | |||
|
r1019 | <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> | ||
|
r736 | |||
<% content_for :sidebar do %> | ||||
|
r3465 | <%= render :partial => 'issues/sidebar' %> | ||
<% if User.current.allowed_to?(:add_issue_watchers, @project) || | ||||
|
r3622 | (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %> | ||
|
r3465 | <div id="watchers"> | ||
<%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %> | ||||
</div> | ||||
<% end %> | ||||
|
r736 | <% end %> | ||
|
r1171 | |||
<% content_for :header_tags do %> | ||||
<%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %> | ||||
|
r1548 | <%= stylesheet_link_tag 'scm' %> | ||
|
r3459 | <%= javascript_include_tag 'context_menu' %> | ||
<%= stylesheet_link_tag 'context_menu' %> | ||||
|
r3900 | <%= stylesheet_link_tag 'context_menu_rtl' if l(:direction) == 'rtl' %> | ||
|
r1171 | <% end %> | ||
|
r3459 | <div id="context-menu" style="display: none;"></div> | ||
|
r3892 | <%= javascript_tag "new ContextMenu('#{issues_context_menu_path}')" %> | ||