Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 24
- Log:
Initial import of Collaboa 0.5.6 from downloaded Tarball. Collaboa is
a Ruby On Rails based bug tracker and SVN repository browsing tool.
- Author:
- adh
- Date:
- Mon Jul 24 21:54:39 +0100 2006
- Size:
- 444 Bytes
1 | class Milestone < ActiveRecord::Base |
2 | has_many :tickets |
3 | |
4 | def open_tickets |
5 | self.tickets.count("status_id <= 1") # using '<=' just in case |
6 | end |
7 | |
8 | def closed_tickets |
9 | self.tickets.count("status_id > 1") |
10 | end |
11 | |
12 | def total_tickets |
13 | self.closed_tickets + self.open_tickets |
14 | end |
15 | |
16 | def completed_tickets_percent |
17 | return 0 if self.tickets.empty? |
18 | (self.closed_tickets.to_f / self.total_tickets.to_f * 100).to_i |
19 | end |
20 | end |