revision.rhtml
57 lines
| 1.9 KiB
| text/html+ruby
|
RhtmlLexer
|
r330 | <div class="contextual"> | ||
|
r925 | « | ||
<% 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 -%> | ||||
» | ||||
|
r1597 | <% form_tag({:controller => 'repositories', :action => 'revision', :id => @project, :rev => nil}, :method => :get) do %> | ||
|
r925 | <%= text_field_tag 'rev', @rev, :size => 5 %> | ||
|
r1597 | <%= submit_tag 'OK', :name => nil %> | ||
|
r925 | <% end %> | ||
|
r330 | </div> | ||
|
r1222 | <h2><%= l(:label_revision) %> <%= format_revision(@changeset.revision) %></h2> | ||
|
r330 | |||
|
r556 | <p><% if @changeset.scmid %>ID: <%= @changeset.scmid %><br /><% end %> | ||
|
r2004 | <span class="author"><%= authoring(@changeset.committed_on, @changeset.author) %></span></p> | ||
|
r556 | |||
|
r476 | <%= textilizable @changeset.comments %> | ||
|
r330 | |||
|
r470 | <% 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 %> | ||||
|
r480 | <h3><%= l(:label_attachment_plural) %></h3> | ||
|
r1868 | <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> | ||||
|
r480 | <p><%= link_to(l(:label_view_diff), :action => 'diff', :id => @project, :path => "", :rev => @changeset.revision) if @changeset.changes.any? %></p> | ||
|
r1868 | |||
<div class="changeset-changes"> | ||||
<%= render_changeset_changes %> | ||||
</div> | ||||
|
r330 | |||
<% content_for :header_tags do %> | ||||
<%= stylesheet_link_tag "scm" %> | ||||
|
r532 | <% end %> | ||
|
r951 | |||
|
r1019 | <% html_title("#{l(:label_revision)} #{@changeset.revision}") -%> | ||