Changesets can be listed by changeset number.
The Git repository is here.
Changeset 164
Added "ticket changes" and "ticket creation" RSS feeds, since I was
finding the merged feed containing both creation and change information
less than useful. Most of the time I just want to know about changes to
a ticket in which I have interest, but the combined feed lists changes
after creation - I have to go digging through the list for it.
Helps with Ticket #97 and Ticket #103.
- Comitted by: rool
- Date: Friday December 22 15:28:02 2006 (over 17 years ago)
Affected files:
- rool/rails/collaboa/trunk/app/controllers/rss_controller.rb (diff)
- rool/rails/collaboa/trunk/app/views/rss/index.rhtml (diff)
rool/rails/collaboa/trunk/app/controllers/rss_controller.rb:
prev. | current | |
end | ||
render :action => 'rss' | ||
end | ||
71 | | |
71 | ||
72 | def ticket_creation | |
73 | @rss_title = 'Collaboa - Ticket Creation' | |
74 | @items = [] | |
75 | ||
76 | Ticket.find_all(nil, 'created_at DESC', 5).each do |ticket| | |
77 | @items << {:title => "Ticket ##{ticket.id} created: " + ticket.summary, | |
78 | :content => ticket.content, | |
79 | :author => ticket.author, | |
80 | :date => ticket.created_at, | |
81 | :link => "tickets/show/#{ticket.id}"} | |
82 | end | |
83 | render :action => 'rss' | |
84 | end | |
85 | ||
86 | def ticket_changes | |
87 | @rss_title = 'Collaboa - Ticket Changes' | |
88 | @items = [] | |
89 | ||
90 | TicketChange.find_all(nil, 'created_at DESC', 5).each do |change| | |
91 | content = '' | |
92 | unless change.comment.empty? | |
93 | content << "<p>#{change.comment}</p>\n" | |
94 | end | |
95 | change.each_log {|logitem| content << '<ul>' + format_changes(logitem) + '</ul>' } | |
96 | ||
97 | @items << {:title => "Ticket ##{change.ticket_id} modified by #{change.author}", | |
98 | :content => content, | |
99 | :author => change.author, | |
100 | :date => change.created_at, | |
101 | :link => "tickets/show/#{change.ticket_id}"} | |
102 | end | |
103 | render :action => 'rss' | |
104 | end | |
105 | ||
def changesets | ||
@rss_title = 'Collaboa - Changesets' | ||
@items = [] |
rool/rails/collaboa/trunk/app/views/rss/index.rhtml:
prev. | current | |
<h2><%= link_to 'Tickets', :action => 'tickets' -%></h2> | ||
<p>Contains all tickets and ticket changes</p> | ||
14 | ||
15 | ||
16 | <h2><%= link_to 'Ticket creation', :action => 'ticket_creation' -%></h2> | |
17 | <p>All new tickets, but no ticket changes</p> | |
18 | ||
19 | <h2><%= link_to 'Ticket changes', :action => 'ticket_changes' -%></h2> | |
20 | <p>Ticket changes only</p> | |
21 | </div> |