Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 109
- Log:
Miscellaneous bug fixes. Breadcrumb trail while browsing SVN.
Hub integration - see also Changeset #107 and Changeset #108.
- Author:
- adh
- Date:
- Mon Oct 23 18:22:45 +0100 2006
- Size:
- 1240 Bytes
1 | module TicketsHelper |
2 | def format_author(address) |
3 | if address =~ /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/ |
4 | mail_to(address, address, :encode => "javascript") |
5 | else |
6 | address |
7 | end |
8 | end |
9 | |
10 | def format_changes(change_arr) |
11 | "<strong>#{change_arr[0]}</strong> changed from <em>#{change_arr[1]}</em> to <em>#{change_arr[2]}</em>" |
12 | end |
13 | |
14 | def link_to_add_filter(object) |
15 | good_things = %w{milestone part severity release status} |
16 | obj_name = object.class.to_s.downcase |
17 | |
18 | add_params = params.merge({obj_name => object.id.to_s}).each{|p| p} |
19 | # Reject the current filter |
20 | del_params = params.reject{ |key, value| value == object.id.to_s && key == obj_name} |
21 | |
22 | out = '[' |
23 | unless params == add_params |
24 | out << link_to('+', add_params) |
25 | else |
26 | out << link_to('-', del_params) |
27 | end |
28 | out << ']' |
29 | end |
30 | |
31 | def render_next_prev_links |
32 | out = %{<div class="ticket-next-prev">} |
33 | out << "<p><small>" |
34 | if @ticket.previous |
35 | out << link_to('Previous', :action => 'show', :id => @ticket.previous) |
36 | end |
37 | if @ticket.next |
38 | out << '|' if @ticket.previous |
39 | out << link_to('Next', :action => 'show', :id => @ticket.next) |
40 | end |
41 | out << "</small></p>\n</div>" |
42 | out |
43 | end |
44 | |
45 | end |