@@ -1,4 +1,19 | |||||
1 | <% show_revision_graph = ( @repository.supports_revision_graph? && path.blank? ) %> |
|
1 | <% show_revision_graph = ( @repository.supports_revision_graph? && path.blank? ) %> | |
|
2 | <%= if show_revision_graph && revisions && revisions.any? | |||
|
3 | indexed_commits, graph_space = index_commits(revisions, @repository.branches) do |scmid| | |||
|
4 | url_for( | |||
|
5 | :controller => 'repositories', | |||
|
6 | :action => 'revision', | |||
|
7 | :id => project, | |||
|
8 | :repository_id => @repository.identifier_param, | |||
|
9 | :rev => scmid) | |||
|
10 | end | |||
|
11 | render :partial => 'revision_graph', | |||
|
12 | :locals => { | |||
|
13 | :commits => indexed_commits, | |||
|
14 | :space => graph_space | |||
|
15 | } | |||
|
16 | end %> | |||
2 | <% form_tag( |
|
17 | <% form_tag( | |
3 | {:controller => 'repositories', :action => 'diff', :id => project, |
|
18 | {:controller => 'repositories', :action => 'diff', :id => project, | |
4 | :repository_id => @repository.identifier_param, :path => to_path_param(path)}, |
|
19 | :repository_id => @repository.identifier_param, :path => to_path_param(path)}, | |
@@ -15,21 +30,6 | |||||
15 | </tr></thead> |
|
30 | </tr></thead> | |
16 | <tbody> |
|
31 | <tbody> | |
17 | <% show_diff = revisions.size > 1 %> |
|
32 | <% show_diff = revisions.size > 1 %> | |
18 | <%= if show_revision_graph && revisions && revisions.any? |
|
|||
19 | indexed_commits, graph_space = index_commits(revisions, @repository.branches) do |scmid| |
|
|||
20 | url_for( |
|
|||
21 | :controller => 'repositories', |
|
|||
22 | :action => 'revision', |
|
|||
23 | :id => project, |
|
|||
24 | :repository_id => @repository.identifier_param, |
|
|||
25 | :rev => scmid) |
|
|||
26 | end |
|
|||
27 | render :partial => 'revision_graph', |
|
|||
28 | :locals => { |
|
|||
29 | :commits => indexed_commits, |
|
|||
30 | :space => graph_space |
|
|||
31 | } |
|
|||
32 | end %> |
|
|||
33 | <% line_num = 1 %> |
|
33 | <% line_num = 1 %> | |
34 | <% revisions.each do |changeset| %> |
|
34 | <% revisions.each do |changeset| %> | |
35 | <tr class="changeset <%= cycle 'odd', 'even' %>"> |
|
35 | <tr class="changeset <%= cycle 'odd', 'even' %>"> |
General Comments 0
You need to be logged in to leave comments.
Login now