You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

revision.rhtml 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <div class="contextual">
  2. &#171;
  3. <% unless @changeset.previous.nil? -%>
  4. <%= link_to l(:label_previous), :controller => 'repositories', :action => 'revision', :id => @project, :rev => @changeset.previous.revision %>
  5. <% else -%>
  6. <%= l(:label_previous) %>
  7. <% end -%>
  8. |
  9. <% unless @changeset.next.nil? -%>
  10. <%= link_to l(:label_next), :controller => 'repositories', :action => 'revision', :id => @project, :rev => @changeset.next.revision %>
  11. <% else -%>
  12. <%= l(:label_next) %>
  13. <% end -%>
  14. &#187;&nbsp;
  15. <% form_tag do %>
  16. <%= text_field_tag 'rev', @rev, :size => 5 %>
  17. <%= submit_tag 'OK' %>
  18. <% end %>
  19. </div>
  20. <h2><%= l(:label_revision) %> <%= format_revision(@changeset.revision) %></h2>
  21. <p><% if @changeset.scmid %>ID: <%= @changeset.scmid %><br /><% end %>
  22. <em><%= @changeset.committer.to_s.split('<').first %>, <%= format_time(@changeset.committed_on) %></em></p>
  23. <%= textilizable @changeset.comments %>
  24. <% if @changeset.issues.any? %>
  25. <h3><%= l(:label_related_issues) %></h3>
  26. <ul>
  27. <% @changeset.issues.each do |issue| %>
  28. <li><%= link_to_issue issue %>: <%=h issue.subject %></li>
  29. <% end %>
  30. </ul>
  31. <% end %>
  32. <h3><%= l(:label_attachment_plural) %></h3>
  33. <div style="float:right;">
  34. <div class="square action_A"></div> <div style="float:left;"><%= l(:label_added) %>&nbsp;</div>
  35. <div class="square action_M"></div> <div style="float:left;"><%= l(:label_modified) %>&nbsp;</div>
  36. <div class="square action_D"></div> <div style="float:left;"><%= l(:label_deleted) %>&nbsp;</div>
  37. </div>
  38. <p><%= link_to(l(:label_view_diff), :action => 'diff', :id => @project, :path => "", :rev => @changeset.revision) if @changeset.changes.any? %></p>
  39. <table class="list">
  40. <tbody>
  41. <% @changes.each do |change| %>
  42. <tr class="<%= cycle 'odd', 'even' %>">
  43. <td><div class="square action_<%= change.action %>"></div> <%= change.path %> <%= "(#{change.revision})" unless change.revision.blank? %></td>
  44. <td align="right">
  45. <% if change.action == "M" %>
  46. <%= link_to l(:label_view_diff), :action => 'diff', :id => @project, :path => without_leading_slash(change.relative_path), :rev => @changeset.revision %>
  47. <% end %>
  48. </td>
  49. </tr>
  50. <% end %>
  51. </tbody>
  52. </table>
  53. <p class="pagination"><%= pagination_links_full @changes_pages %></p>
  54. <% content_for :header_tags do %>
  55. <%= stylesheet_link_tag "scm" %>
  56. <% end %>
  57. <% html_title("#{l(:label_revision)} #{@changeset.revision}") -%>