revision.rhtml
37 lines
| 1.3 KiB
| text/html+ruby
|
RhtmlLexer
|
r330 | <div class="contextual"> | |
<% form_tag do %> | |||
<p><%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %> | |||
<%= submit_tag 'OK' %></p> | |||
<% end %> | |||
</div> | |||
|
r374 | <h2><%= l(:label_revision) %> <%= @changeset.revision %></h2> | |
|
r330 | ||
|
r374 | <p><em><%= @changeset.committer %>, <%= format_time(@changeset.committed_on) %></em></p> | |
<%= textilizable @changeset.comment %> | |||
|
r330 | ||
<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> | |||
<h3><%= l(:label_attachment_plural) %></h3> | |||
<table class="list"> | |||
<tbody> | |||
|
r374 | <% @changeset.changes.each do |change| %> | |
|
r330 | <tr class="<%= cycle 'odd', 'even' %>"> | |
|
r374 | <td><div class="square action_<%= change.action %>"></div> <%= change.path %></td> | |
|
r388 | <td align="right"> | |
|
r374 | <% if change.action == "M" %> | |
|
r388 | <%= link_to l(:label_view_diff), :action => 'diff', :id => @project, :path => change.path, :rev => @changeset.revision %> | |
|
r330 | <% end %> | |
</td> | |||
</tr> | |||
<% end %> | |||
</tbody> | |||
</table> | |||
|
r374 | <p><%= lwr(:label_modification, @changeset.changes.length) %></p> | |
|
r330 | ||
<% content_for :header_tags do %> | |||
<%= stylesheet_link_tag "scm" %> | |||
|
r147 | <% end %> |