Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 114
- Log:
Updated for use with HubSsoLib 0.1.0 (Changeset #113). Some stylesheet
improvements.
- Author:
- adh
- Date:
- Fri Oct 27 15:59:50 +0100 2006
- Size:
- 3736 Bytes
1 | <% @page_title = 'Ticket #' + @ticket.id.to_s %> |
2 | |
3 | <div id="content"> |
4 | <%= render_next_prev_links -%> |
5 | |
6 | <div class="breadcrumbs"> |
7 | <ul> |
8 | <li><%= link_to 'Tickets', :action => 'index' -%></li> |
9 | <li>» Ticket #<%= @ticket.id -%></li> |
10 | </ul> |
11 | </div> |
12 | |
13 | <%= error_messages_for 'ticket' %> |
14 | <%= error_messages_for 'change' %> |
15 | |
16 | <div id="ticket"> |
17 | <h1>Ticket #<%= @ticket.id -%> (<%= @ticket.status.name -%>)<span class="date"><%= @ticket.created_at -%></span></h1> |
18 | <h2><%=h @ticket.summary -%></h2> |
19 | |
20 | <table id="ticket-details"> |
21 | <tr> |
22 | <td class="info">Reported by:</td> |
23 | <td><%= format_author @ticket.author -%></td> |
24 | <td class="info">Severity:</td> |
25 | <td><%= @ticket.severity.name -%></td> |
26 | </tr> |
27 | <tr> |
28 | <td class="info">Part:</td> |
29 | <td><%= @ticket.part.name unless @ticket.part.nil? -%></td> |
30 | <td class="info">Release:</td> |
31 | <td><%= @ticket.release.name unless @ticket.release.nil? -%></td> |
32 | </tr> |
33 | <tr> |
34 | <td class="info">Milestone:</td> |
35 | <td><%= @ticket.milestone.name unless @ticket.milestone.nil? -%></td> |
36 | <td class="info">Status</td> |
37 | <td><%= @ticket.status.name-%></td> |
38 | </tr> |
39 | </table> |
40 | |
41 | <h3>Details by <%= format_author @ticket.author -%>:</h3> |
42 | <%= make_links(htmlize(@ticket.content)) %> |
43 | </div> |
44 | |
45 | <% first = true %> |
46 | <% @ticket.ticket_changes.each do |change| -%> |
47 | <% if (first) -%> |
48 | <h3>Changelog:</h3> |
49 | <div id="ticket-changes"> |
50 | <% first = false; end -%> |
51 | |
52 | <h4>Modified by <%= format_author change.author -%> <%= change.created_at.strftime('%a, %B %d %Y - %H:%M:%S %Z') -%></h4> |
53 | <ul> |
54 | <% change.each_log do |log_entry| -%> |
55 | <li><%= format_changes log_entry %></li> |
56 | <% end -%> |
57 | <% if change.has_attachment? -%> |
58 | <li><strong>Attachment</strong> added: <%= link_to(change.attachment, :action => "attachment", :id => change.id) %></li> |
59 | <% end -%> |
60 | </ul> |
61 | |
62 | <% unless change.comment.nil? -%> |
63 | <div id="ticket-change-comment"><%= make_links(htmlize(change.comment)) %></div> |
64 | <% end -%> |
65 | <% end -%> |
66 | <% unless first -%> |
67 | </div> |
68 | <% end -%> |
69 | |
70 | <h3 id="comment">Update ticket:</h3> |
71 | |
72 | <%= form_tag({ :action => 'comment', :id => @ticket.id }, :multipart => true) %> |
73 | <fieldset> |
74 | <legend>Add comment and/or change ticket properties</legend> |
75 | <label class="first">Name/Email <em>(obligatory)</em>: |
76 | <%= text_field 'change', 'author' -%></label> |
77 | |
78 | <br /> |
79 | <label>Attachment: |
80 | <%= file_field('change', 'attachment') -%></label> |
81 | |
82 | <br /> |
83 | <label>Comment: |
84 | <%= text_area 'change', 'comment', :rows => 12 -%></label> |
85 | |
86 | <br /> |
87 | <label>Ticket Summary: |
88 | <%= text_field 'ticket', 'summary' -%></label> |
89 | |
90 | <table> |
91 | <tr class="set-status"> |
92 | <td>Status:</td> |
93 | <td><%= collection_select 'ticket', 'status_id', @status, 'id', 'name' -%></td> |
94 | </tr> |
95 | <tr> |
96 | <td>Severity:</td> |
97 | <td><%= collection_select 'ticket', 'severity_id', @severities, 'id', 'name' -%></td> |
98 | </tr> |
99 | <tr> |
100 | <td>Part: </td> |
101 | <td><%= collection_select 'ticket', 'part_id', @parts, 'id', 'name', { :include_blank => true } -%></td> |
102 | </tr> |
103 | <tr> |
104 | <td>Release:</td> |
105 | <td><%= collection_select 'ticket', 'release_id', @releases, 'id', 'name', { :include_blank => true } -%></td> |
106 | </tr> |
107 | <tr> |
108 | <td>Milestone: </td> |
109 | <td><%= collection_select 'ticket', 'milestone_id', @milestones, 'id', 'name', { :include_blank => true } -%></td> |
110 | </tr> |
111 | </table> |
112 | |
113 | </fieldset> |
114 | <input type="submit" value="Submit changes" class="submit"> |
115 | <%= end_form_tag %> |
116 | <%= render_next_prev_links -%> |
117 | </div> |