@@ -1,36 +1,36 | |||||
1 | <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> |
|
1 | <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> | |
2 |
|
2 | |||
3 | <div class="contextual"> |
|
3 | <div class="contextual"> | |
4 | <%= render :partial => 'navigation' %> |
|
4 | <%= render :partial => 'navigation' %> | |
5 | </div> |
|
5 | </div> | |
6 |
|
6 | |||
7 | <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2> |
|
7 | <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2> | |
8 |
|
8 | |||
9 |
|
|
9 | <%= render :partial => 'link_to_functions' %> | |
10 |
|
10 | |||
11 | <% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %> |
|
11 | <% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %> | |
12 |
|
12 | |||
13 | <div class="autoscroll"> |
|
13 | <div class="autoscroll"> | |
14 | <table class="filecontent annotate syntaxhl"> |
|
14 | <table class="filecontent annotate syntaxhl"> | |
15 | <tbody> |
|
15 | <tbody> | |
16 | <% line_num = 1 %> |
|
16 | <% line_num = 1 %> | |
17 | <% syntax_highlight_lines(@path, Redmine::CodesetUtil.to_utf8_by_setting(@annotate.content)).each do |line| %> |
|
17 | <% syntax_highlight_lines(@path, Redmine::CodesetUtil.to_utf8_by_setting(@annotate.content)).each do |line| %> | |
18 | <% revision = @annotate.revisions[line_num - 1] %> |
|
18 | <% revision = @annotate.revisions[line_num - 1] %> | |
19 | <tr class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %>"> |
|
19 | <tr class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %>"> | |
20 | <th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th> |
|
20 | <th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th> | |
21 | <td class="revision"> |
|
21 | <td class="revision"> | |
22 | <%= (revision.identifier ? link_to_revision(revision, @repository) : format_revision(revision)) if revision %></td> |
|
22 | <%= (revision.identifier ? link_to_revision(revision, @repository) : format_revision(revision)) if revision %></td> | |
23 | <td class="author"><%= h(revision.author.to_s.split('<').first) if revision %></td> |
|
23 | <td class="author"><%= h(revision.author.to_s.split('<').first) if revision %></td> | |
24 | <td class="line-code"><pre><%= line.html_safe %></pre></td> |
|
24 | <td class="line-code"><pre><%= line.html_safe %></pre></td> | |
25 | </tr> |
|
25 | </tr> | |
26 | <% line_num += 1 %> |
|
26 | <% line_num += 1 %> | |
27 | <% end %> |
|
27 | <% end %> | |
28 | </tbody> |
|
28 | </tbody> | |
29 | </table> |
|
29 | </table> | |
30 | </div> |
|
30 | </div> | |
31 |
|
31 | |||
32 | <% html_title(l(:button_annotate)) -%> |
|
32 | <% html_title(l(:button_annotate)) -%> | |
33 |
|
33 | |||
34 | <% content_for :header_tags do %> |
|
34 | <% content_for :header_tags do %> | |
35 | <%= stylesheet_link_tag 'scm' %> |
|
35 | <%= stylesheet_link_tag 'scm' %> | |
36 | <% end %> |
|
36 | <% end %> |
@@ -1,22 +1,20 | |||||
1 | <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> |
|
1 | <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> | |
2 |
|
2 | |||
3 | <div class="contextual"> |
|
3 | <div class="contextual"> | |
4 | <%= render :partial => 'navigation' %> |
|
4 | <%= render :partial => 'navigation' %> | |
5 | </div> |
|
5 | </div> | |
6 |
|
6 | |||
7 | <h2> |
|
7 | <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => (@entry ? @entry.kind : nil), :revision => @rev } %></h2> | |
8 | <%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => (@entry ? @entry.kind : nil), :revision => @rev } %> |
|
|||
9 | </h2> |
|
|||
10 |
|
8 | |||
11 |
|
|
9 | <%= render :partial => 'link_to_functions' %> | |
12 |
|
10 | |||
13 | <%= render_properties(@properties) %> |
|
11 | <%= render_properties(@properties) %> | |
14 |
|
12 | |||
15 | <%= render(:partial => 'revisions', |
|
13 | <%= render(:partial => 'revisions', | |
16 | :locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => @entry }) unless @changesets.empty? %> |
|
14 | :locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => @entry }) unless @changesets.empty? %> | |
17 |
|
15 | |||
18 | <% content_for :header_tags do %> |
|
16 | <% content_for :header_tags do %> | |
19 | <%= stylesheet_link_tag "scm" %> |
|
17 | <%= stylesheet_link_tag "scm" %> | |
20 | <% end %> |
|
18 | <% end %> | |
21 |
|
19 | |||
22 | <% html_title(l(:label_change_plural)) -%> |
|
20 | <% html_title(l(:label_change_plural)) -%> |
@@ -1,15 +1,15 | |||||
1 | <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> |
|
1 | <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> | |
2 |
|
2 | |||
3 | <div class="contextual"> |
|
3 | <div class="contextual"> | |
4 | <%= render :partial => 'navigation' %> |
|
4 | <%= render :partial => 'navigation' %> | |
5 | </div> |
|
5 | </div> | |
6 |
|
6 | |||
7 | <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2> |
|
7 | <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2> | |
8 |
|
8 | |||
9 |
|
|
9 | <%= render :partial => 'link_to_functions' %> | |
10 |
|
10 | |||
11 | <%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %> |
|
11 | <%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %> | |
12 |
|
12 | |||
13 | <% content_for :header_tags do %> |
|
13 | <% content_for :header_tags do %> | |
14 | <%= stylesheet_link_tag "scm" %> |
|
14 | <%= stylesheet_link_tag "scm" %> | |
15 | <% end %> |
|
15 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now