To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / issues / show.html.erb @ 912:5e80956cc792

History | View | Annotate | Download (5.3 KB)

1 0:513646585e45 Chris
<%= render :partial => 'action_menu' %>
2
3 441:cbce1fd3b1b7 Chris
<h2><%= issue_heading(@issue) %></h2>
4 0:513646585e45 Chris
5
<div class="<%= @issue.css_classes %> details">
6
        <%= avatar(@issue.author, :size => "50") %>
7 909:cbb26bc654de Chris
8
<div class="subject">
9 0:513646585e45 Chris
<%= render_issue_subject_with_tree(@issue) %>
10
</div>
11
        <p class="author">
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 %>
16
        </p>
17
18
<table class="attributes">
19
<tr>
20 909:cbb26bc654de Chris
    <th class="status"><%=l(:field_status)%>:</th><td class="status"><%= h(@issue.status.name) %></td>
21 0:513646585e45 Chris
    <th class="start-date"><%=l(:field_start_date)%>:</th><td class="start-date"><%= format_date(@issue.start_date) %></td>
22
</tr>
23
<tr>
24 909:cbb26bc654de Chris
    <th class="priority"><%=l(:field_priority)%>:</th><td class="priority"><%= h(@issue.priority.name) %></td>
25 0:513646585e45 Chris
    <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 909:cbb26bc654de Chris
    <th class="category"><%=l(:field_category)%>:</th><td class="category"><%=h(@issue.category ? @issue.category.name : "-") %></td>
33 0:513646585e45 Chris
    <% if User.current.allowed_to?(:view_time_entries, @project) %>
34
    <th class="spent-time"><%=l(:label_spent_time)%>:</th>
35 37:94944d00e43c chris
    <td class="spent-time"><%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}) : "-" %></td>
36 0:513646585e45 Chris
    <% end %>
37
</tr>
38
<tr>
39
    <th class="fixed-version"><%=l(:field_fixed_version)%>:</th><td class="fixed-version"><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td>
40
    <% if @issue.estimated_hours %>
41
    <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td class="estimated-hours"><%= l_hours(@issue.estimated_hours) %></td>
42
    <% end %>
43
</tr>
44
<%= render_custom_fields_rows(@issue) %>
45
<%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
46
</table>
47 37:94944d00e43c chris
48
<% if @issue.description? || @issue.attachments.any? -%>
49 0:513646585e45 Chris
<hr />
50 119:8661b858af72 Chris
<% if @issue.description? %>
51 909:cbb26bc654de Chris
  <div class="contextual">
52
  <%= link_to_remote_if_authorized(l(:button_quote), { :url => {:controller => 'journals', :action => 'new', :id => @issue} }, :class => 'icon icon-comment') %>
53
  </div>
54
55
  <p><strong><%=l(:field_description)%></strong></p>
56
  <div class="wiki">
57
  <%= textilizable @issue, :description, :attachments => @issue.attachments %>
58
  </div>
59 119:8661b858af72 Chris
<% end %>
60 0:513646585e45 Chris
<%= link_to_attachments @issue %>
61 37:94944d00e43c chris
<% end -%>
62 0:513646585e45 Chris
63
<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
64
65
<% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %>
66
<hr />
67
<div id="issue_tree">
68
<div class="contextual">
69
  <%= 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) %>
70
</div>
71
<p><strong><%=l(:label_subtask_plural)%></strong></p>
72
<%= render_descendants_tree(@issue) unless @issue.leaf? %>
73
</div>
74
<% end %>
75
76 441:cbce1fd3b1b7 Chris
<% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %>
77 0:513646585e45 Chris
<hr />
78
<div id="relations">
79
<%= render :partial => 'relations' %>
80
</div>
81
<% end %>
82
83
</div>
84
85
<% if @changesets.present? %>
86
<div id="issue-changesets">
87
<h3><%=l(:label_associated_revisions)%></h3>
88
<%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
89
</div>
90
<% end %>
91
92
<% if @journals.present? %>
93
<div id="history">
94
<h3><%=l(:label_history)%></h3>
95
<%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
96
</div>
97
<% end %>
98
99
100
<div style="clear: both;"></div>
101 441:cbce1fd3b1b7 Chris
<%= render :partial => 'action_menu' %>
102 0:513646585e45 Chris
103
<div style="clear: both;"></div>
104
<% if authorize_for('issues', 'edit') %>
105
  <div id="update" style="display:none;">
106
  <h3><%= l(:button_update) %></h3>
107
  <%= render :partial => 'edit' %>
108
  </div>
109
<% end %>
110
111
<% other_formats_links do |f| %>
112 909:cbb26bc654de Chris
  <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
113
  <%= f.link_to 'PDF' %>
114 0:513646585e45 Chris
<% end %>
115
116
<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
117
118
<% content_for :sidebar do %>
119
  <%= render :partial => 'issues/sidebar' %>
120
121
  <% if User.current.allowed_to?(:add_issue_watchers, @project) ||
122
    (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
123
    <div id="watchers">
124
      <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
125
    </div>
126
  <% end %>
127
<% end %>
128
129
<% content_for :header_tags do %>
130
    <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %>
131
    <%= stylesheet_link_tag 'scm' %>
132
    <%= javascript_include_tag 'context_menu' %>
133
    <%= stylesheet_link_tag 'context_menu' %>
134 14:1d32c0a0efbf Chris
    <%= stylesheet_link_tag 'context_menu_rtl' if l(:direction) == 'rtl' %>
135 0:513646585e45 Chris
<% end %>
136
<div id="context-menu" style="display: none;"></div>
137 14:1d32c0a0efbf Chris
<%= javascript_tag "new ContextMenu('#{issues_context_menu_path}')" %>