2007-03-12 20:59:02 +03:00
|
|
|
<div class="contextual">
|
2007-12-01 20:15:42 +03:00
|
|
|
«
|
|
|
|
<% unless @changeset.previous.nil? -%>
|
|
|
|
<%= link_to l(:label_previous), :controller => 'repositories', :action => 'revision', :id => @project, :rev => @changeset.previous.revision %>
|
|
|
|
<% else -%>
|
|
|
|
<%= l(:label_previous) %>
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
|
<% unless @changeset.next.nil? -%>
|
|
|
|
<%= link_to l(:label_next), :controller => 'repositories', :action => 'revision', :id => @project, :rev => @changeset.next.revision %>
|
|
|
|
<% else -%>
|
|
|
|
<%= l(:label_next) %>
|
|
|
|
<% end -%>
|
|
|
|
»
|
|
|
|
|
|
|
|
<% form_tag do %>
|
|
|
|
<%= text_field_tag 'rev', @rev, :size => 5 %>
|
|
|
|
<%= submit_tag 'OK' %>
|
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
|
|
|
|
2008-03-12 23:28:49 +03:00
|
|
|
<h2><%= l(:label_revision) %> <%= format_revision(@changeset.revision) %></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-06-13 00:12:05 +04:00
|
|
|
<p><% if @changeset.scmid %>ID: <%= @changeset.scmid %><br /><% end %>
|
2008-03-08 16:46:07 +03:00
|
|
|
<em><%= @changeset.committer.to_s.split('<').first %>, <%= format_time(@changeset.committed_on) %></em></p>
|
2007-06-13 00:12:05 +04:00
|
|
|
|
2007-04-25 19:06:20 +04:00
|
|
|
<%= textilizable @changeset.comments %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-04-24 17:57:27 +04:00
|
|
|
<% if @changeset.issues.any? %>
|
|
|
|
<h3><%= l(:label_related_issues) %></h3>
|
|
|
|
<ul>
|
|
|
|
<% @changeset.issues.each do |issue| %>
|
|
|
|
<li><%= link_to_issue issue %>: <%=h issue.subject %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
|
2007-04-26 22:46:55 +04:00
|
|
|
<h3><%= l(:label_attachment_plural) %></h3>
|
2007-03-12 20:59:02 +03:00
|
|
|
<div style="float:right;">
|
|
|
|
<div class="square action_A"></div> <div style="float:left;"><%= l(:label_added) %> </div>
|
|
|
|
<div class="square action_M"></div> <div style="float:left;"><%= l(:label_modified) %> </div>
|
|
|
|
<div class="square action_D"></div> <div style="float:left;"><%= l(:label_deleted) %> </div>
|
|
|
|
</div>
|
2007-04-26 22:46:55 +04:00
|
|
|
<p><%= link_to(l(:label_view_diff), :action => 'diff', :id => @project, :path => "", :rev => @changeset.revision) if @changeset.changes.any? %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<table class="list">
|
|
|
|
<tbody>
|
2007-05-16 01:32:36 +04:00
|
|
|
<% @changes.each do |change| %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<tr class="<%= cycle 'odd', 'even' %>">
|
2008-06-15 18:40:05 +04:00
|
|
|
<td><div class="square action_<%= change.action %>"></div>
|
2008-06-22 18:40:45 +04:00
|
|
|
<% if change.action == "D" -%>
|
|
|
|
<%= change.path -%>
|
|
|
|
<% else -%>
|
2008-06-26 21:02:09 +04:00
|
|
|
<%= link_to change.path, :action => 'entry', :id => @project, :path => without_leading_slash(change.relative_path), :rev => @changeset.revision -%>
|
2008-06-22 18:40:45 +04:00
|
|
|
<% end -%>
|
2008-06-15 18:40:05 +04:00
|
|
|
<%= "(#{change.revision})" unless change.revision.blank? %></td>
|
2007-03-29 23:02:48 +04:00
|
|
|
<td align="right">
|
2007-03-25 16:12:15 +04:00
|
|
|
<% if change.action == "M" %>
|
2008-05-24 21:58:34 +04:00
|
|
|
<%= link_to l(:label_view_diff), :action => 'diff', :id => @project, :path => without_leading_slash(change.relative_path), :rev => @changeset.revision %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2007-12-29 14:36:30 +03:00
|
|
|
<p class="pagination"><%= pagination_links_full @changes_pages %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= stylesheet_link_tag "scm" %>
|
2007-05-16 01:32:36 +04:00
|
|
|
<% end %>
|
2007-12-07 21:42:40 +03:00
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title("#{l(:label_revision)} #{@changeset.revision}") -%>
|