show.rhtml
129 lines
| 5.4 KiB
| text/html+ruby
|
RhtmlLexer
|
r330 | <div class="contextual"> | ||
|
r1591 | <%= link_to_if_authorized(l(:button_update), {:controller => 'issues', :action => 'edit', :id => @issue }, :onclick => 'showAndScrollTo("update", "notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %> | ||
|
r2336 | <%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time-add' %> | ||
|
r686 | <%= watcher_tag(@issue, User.current) %> | ||
|
r1066 | <%= link_to_if_authorized l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-copy' %> | ||
|
r1116 | <%= link_to_if_authorized l(:button_move), {:controller => 'issues', :action => 'move', :id => @issue }, :class => 'icon icon-move' %> | ||
|
r686 | <%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> | ||
|
r330 | </div> | ||
|
r2 | |||
|
r736 | <h2><%= @issue.tracker.name %> #<%= @issue.id %></h2> | ||
|
r2602 | <div class="<%= @issue.css_classes %> details"> | ||
|
r1998 | <%= avatar(@issue.author, :size => "64") %> | ||
|
r736 | <h3><%=h @issue.subject %></h3> | ||
|
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> | ||
<th class="start-date"><%=l(:field_start_date)%>:</th><td><%= 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> | ||||
|
r2721 | <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> | ||||
|
r330 | </tr> | ||
<tr> | ||||
|
r2721 | <th class="category"><%=l(:field_category)%>:</th><td><%=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> | ||
|
r2430 | <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> | ||
|
r720 | <% end %> | ||
</tr> | ||||
<tr> | ||||
|
r2721 | <th class="fixed-version"><%=l(:field_fixed_version)%>:</th><td><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td> | ||
|
r720 | <% if @issue.estimated_hours %> | ||
|
r2721 | <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td><%= l_hours(@issue.estimated_hours) %></td> | ||
|
r720 | <% end %> | ||
|
r330 | </tr> | ||
<tr> | ||||
|
r1578 | <% n = 0 -%> | ||
|
r2625 | <% @issue.custom_field_values.each do |value| -%> | ||
|
r2721 | <th><%=h value.custom_field.name %>:</th><td><%= simple_format_without_paragraph(h(show_value(value))) %></td> | ||
|
r330 | <% n = n + 1 | ||
if (n > 1) | ||||
n = 0 %> | ||||
</tr><tr> | ||||
<%end | ||||
end %> | ||||
</tr> | ||||
|
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) %> | ||
|
r503 | <% if authorize_for('issue_relations', 'new') || @issue.relations.any? %> | ||
|
r736 | <hr /> | ||
<div id="relations"> | ||||
|
r503 | <%= render :partial => 'relations' %> | ||
</div> | ||||
<% end %> | ||||
|
r1711 | <% if User.current.allowed_to?(:add_issue_watchers, @project) || | ||
(@issue.watchers.any? && User.current.allowed_to?(:view_issue_watchers, @project)) %> | ||||
<hr /> | ||||
<div id="watchers"> | ||||
<%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %> | ||||
</div> | ||||
<% end %> | ||||
|
r663 | </div> | ||
|
r736 | |||
|
r2455 | <% if @changesets.any? && User.current.allowed_to?(:view_changesets, @project) %> | ||
|
r1071 | <div id="issue-changesets"> | ||
<h3><%=l(:label_associated_revisions)%></h3> | ||||
|
r2455 | <%= render :partial => 'changesets', :locals => { :changesets => @changesets} %> | ||
|
r1071 | </div> | ||
<% end %> | ||||
|
r610 | <% if @journals.any? %> | ||
|
r736 | <div id="history"> | ||
|
r610 | <h3><%=l(:label_history)%></h3> | ||
|
r330 | <%= render :partial => 'history', :locals => { :journals => @journals } %> | ||
</div> | ||||
|
r593 | <% end %> | ||
|
r1179 | <div style="clear: both;"></div> | ||
|
r330 | |||
|
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 %> | ||||
<%= render :partial => 'issues/sidebar' %> | ||||
<% 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' %> | ||
|
r1171 | <% end %> | ||