RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account
You are currently browsing the Subversion repository.
Changesets can be listed by changeset number.
The Git repository is here.
  • Changesets
  • » Changeset 164

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 16 years ago)

Affected files:

  • Updated rool/rails/collaboa/trunk/app/controllers/rss_controller.rb (diff)
  • Updated 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   </div>
  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>

Search tickets

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Options

  • Tickets
  • New ticket
  • Milestones
  • Subversion: Changesets
  • Subversion: Browse
  • CVS: Revisions
  • CVS: Browse
  • Search

RSS feeds Rss

  • Changesets
  • Everything!
  • More feeds...
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Collaboa theme is distantly based on the Collaboa default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Collaboa
This site runs on Rails

Hosted by Arachsys