diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-08-23 08:39:02 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-08-23 08:39:02 +0000 |
commit | 42e6d6333cdd0f611321f826a04a4c31b1514c94 (patch) | |
tree | 777afe4bac3084363b8ef246d1fd0316d0464e68 /app/views/repositories/revision.html.erb | |
parent | 84dc66dd3d4f8459d258ef61f451c94a0ecd5b5a (diff) | |
download | redmine-42e6d6333cdd0f611321f826a04a4c31b1514c94.tar.gz redmine-42e6d6333cdd0f611321f826a04a4c31b1514c94.zip |
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
Diffstat (limited to 'app/views/repositories/revision.html.erb')
-rw-r--r-- | app/views/repositories/revision.html.erb | 67 |
1 files changed, 67 insertions, 0 deletions
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 @@ +<div class="contextual"> + « + <% 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 %> +</div> + +<h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2> + +<p><% if @changeset.scmid %>ID: <%= h(@changeset.scmid) %><br /><% end %> +<span class="author"><%= authoring(@changeset.committed_on, @changeset.author) %></span></p> + +<%= textilizable @changeset.comments %> + +<% if @changeset.issues.visible.any? %> +<h3><%= l(:label_related_issues) %></h3> +<ul> +<% @changeset.issues.visible.each do |issue| %> + <li><%= link_to_issue issue %></li> +<% end %> +</ul> +<% end %> + +<% if User.current.allowed_to?(:browse_repository, @project) %> +<h3><%= l(:label_attachment_plural) %></h3> +<ul id="changes-legend"> +<li class="change change-A"><%= l(:label_added) %></li> +<li class="change change-M"><%= l(:label_modified) %></li> +<li class="change change-C"><%= l(:label_copied) %></li> +<li class="change change-R"><%= l(:label_renamed) %></li> +<li class="change change-D"><%= l(:label_deleted) %></li> +</ul> + +<p><%= link_to(l(:label_view_diff), + :action => 'diff', + :id => @project, + :path => "", + :rev => @changeset.identifier) if @changeset.changes.any? %></p> + +<div class="changeset-changes"> +<%= render_changeset_changes %> +</div> +<% end %> + +<% content_for :header_tags do %> +<%= stylesheet_link_tag "scm" %> +<% end %> + +<% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%> |