From: Toshi MARUYAMA Date: Tue, 23 Aug 2011 08:39:02 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/repositories/revision.rhtml. X-Git-Tag: 1.3.0~1425 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=42e6d6333cdd0f611321f826a04a4c31b1514c94;p=redmine.git rename .rhtml to .html.erb of app/views/repositories/revision.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@6536 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/repositories/revision.html.erb b/app/views/repositories/revision.html.erb new file mode 100644 index 000000000..85b11d441 --- /dev/null +++ b/app/views/repositories/revision.html.erb @@ -0,0 +1,67 @@ +
+ « + <% unless @changeset.previous.nil? -%> + <%= link_to_revision(@changeset.previous, @project, :text => l(:label_previous)) %> + <% else -%> + <%= l(:label_previous) %> + <% end -%> +| + <% unless @changeset.next.nil? -%> + <%= link_to_revision(@changeset.next, @project, :text => l(:label_next)) %> + <% else -%> + <%= l(:label_next) %> + <% end -%> + »  + + <% form_tag({:controller => 'repositories', + :action => 'revision', + :id => @project, + :rev => nil}, + :method => :get) do %> + <%= text_field_tag 'rev', @rev, :size => 8 %> + <%= submit_tag 'OK', :name => nil %> + <% end %> +
+ +

<%= l(:label_revision) %> <%= format_revision(@changeset) %>

+ +

<% if @changeset.scmid %>ID: <%= h(@changeset.scmid) %>
<% end %> +<%= authoring(@changeset.committed_on, @changeset.author) %>

+ +<%= textilizable @changeset.comments %> + +<% if @changeset.issues.visible.any? %> +

<%= l(:label_related_issues) %>

+ +<% end %> + +<% if User.current.allowed_to?(:browse_repository, @project) %> +

<%= l(:label_attachment_plural) %>

+ + +

<%= link_to(l(:label_view_diff), + :action => 'diff', + :id => @project, + :path => "", + :rev => @changeset.identifier) if @changeset.changes.any? %>

+ +
+<%= render_changeset_changes %> +
+<% end %> + +<% content_for :header_tags do %> +<%= stylesheet_link_tag "scm" %> +<% end %> + +<% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%> diff --git a/app/views/repositories/revision.rhtml b/app/views/repositories/revision.rhtml deleted file mode 100644 index 85b11d441..000000000 --- a/app/views/repositories/revision.rhtml +++ /dev/null @@ -1,67 +0,0 @@ -
- « - <% unless @changeset.previous.nil? -%> - <%= link_to_revision(@changeset.previous, @project, :text => l(:label_previous)) %> - <% else -%> - <%= l(:label_previous) %> - <% end -%> -| - <% unless @changeset.next.nil? -%> - <%= link_to_revision(@changeset.next, @project, :text => l(:label_next)) %> - <% else -%> - <%= l(:label_next) %> - <% end -%> - »  - - <% form_tag({:controller => 'repositories', - :action => 'revision', - :id => @project, - :rev => nil}, - :method => :get) do %> - <%= text_field_tag 'rev', @rev, :size => 8 %> - <%= submit_tag 'OK', :name => nil %> - <% end %> -
- -

<%= l(:label_revision) %> <%= format_revision(@changeset) %>

- -

<% if @changeset.scmid %>ID: <%= h(@changeset.scmid) %>
<% end %> -<%= authoring(@changeset.committed_on, @changeset.author) %>

- -<%= textilizable @changeset.comments %> - -<% if @changeset.issues.visible.any? %> -

<%= l(:label_related_issues) %>

- -<% end %> - -<% if User.current.allowed_to?(:browse_repository, @project) %> -

<%= l(:label_attachment_plural) %>

- - -

<%= link_to(l(:label_view_diff), - :action => 'diff', - :id => @project, - :path => "", - :rev => @changeset.identifier) if @changeset.changes.any? %>

- -
-<%= render_changeset_changes %> -
-<% end %> - -<% content_for :header_tags do %> -<%= stylesheet_link_tag "scm" %> -<% end %> - -<% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%>