From: Toshi MARUYAMA Date: Tue, 23 Aug 2011 08:40:39 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/repositories/annotate.rhtml. X-Git-Tag: 1.3.0~1422 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9dd2197cf5cb26ad08c7d6ba89c277a4c333c41c;p=redmine.git rename .rhtml to .html.erb of app/views/repositories/annotate.rhtml. :rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6539 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/repositories/annotate.html.erb b/app/views/repositories/annotate.html.erb new file mode 100644 index 000000000..498507148 --- /dev/null +++ b/app/views/repositories/annotate.html.erb @@ -0,0 +1,36 @@ +<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> + +
+ <%= render :partial => 'navigation' %> +
+ +

<%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %>

+ +

<%= render :partial => 'link_to_functions' %>

+ +<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %> + +
+ + + <% line_num = 1 %> + <% syntax_highlight(@path, to_utf8(@annotate.content)).each_line do |line| %> + <% revision = @annotate.revisions[line_num-1] %> + + + + + + + <% line_num += 1 %> + <% end %> + +
<%= line_num %> + <%= (revision.identifier ? link_to_revision(revision, @project) : format_revision(revision)) if revision %><%= h(revision.author.to_s.split('<').first) if revision %>
<%= line %>
+
+ +<% html_title(l(:button_annotate)) -%> + +<% content_for :header_tags do %> +<%= stylesheet_link_tag 'scm' %> +<% end %> diff --git a/app/views/repositories/annotate.rhtml b/app/views/repositories/annotate.rhtml deleted file mode 100644 index 498507148..000000000 --- a/app/views/repositories/annotate.rhtml +++ /dev/null @@ -1,36 +0,0 @@ -<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> - -
- <%= render :partial => 'navigation' %> -
- -

<%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %>

- -

<%= render :partial => 'link_to_functions' %>

- -<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %> - -
- - - <% line_num = 1 %> - <% syntax_highlight(@path, to_utf8(@annotate.content)).each_line do |line| %> - <% revision = @annotate.revisions[line_num-1] %> - - - - - - - <% line_num += 1 %> - <% end %> - -
<%= line_num %> - <%= (revision.identifier ? link_to_revision(revision, @project) : format_revision(revision)) if revision %><%= h(revision.author.to_s.split('<').first) if revision %>
<%= line %>
-
- -<% html_title(l(:button_annotate)) -%> - -<% content_for :header_tags do %> -<%= stylesheet_link_tag 'scm' %> -<% end %>