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.

_changeset.html.erb 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
  2. <div class="details">
  3. <h4>
  4. <%= avatar(@changeset.user) %>
  5. <%= authoring(@changeset.committed_on, @changeset.author) %>
  6. </h4>
  7. <% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
  8. <ul class="revision-info">
  9. <% if @changeset.scmid.present? %>
  10. <li>
  11. <strong>ID </strong><%= @changeset.scmid %>
  12. </li>
  13. <% end %>
  14. <% if @changeset.parents.present? %>
  15. <li>
  16. <strong><%= l(:label_parent_revision) %></strong>
  17. <%= @changeset.parents.collect{
  18. |p| link_to_revision(p, @repository, :text => format_revision(p))
  19. }.join(", ").html_safe %>
  20. </li>
  21. <% end %>
  22. <% if @changeset.children.present? %>
  23. <li>
  24. <strong><%= l(:label_child_revision) %></strong>
  25. <%= @changeset.children.collect{
  26. |p| link_to_revision(p, @repository, :text => format_revision(p))
  27. }.join(", ").html_safe %>
  28. </li>
  29. <% end %>
  30. </ul>
  31. <% end %>
  32. </div>
  33. <div class="wiki changeset-comments">
  34. <%= format_changeset_comments @changeset %>
  35. </div>
  36. <% if @changeset.issues.visible.any? || User.current.allowed_to?(:manage_related_issues, @repository.project) %>
  37. <%= render :partial => 'related_issues' %>
  38. <% end %>
  39. <% if User.current.allowed_to?(:browse_repository, @repository.project) %>
  40. <%
  41. tabs = []
  42. tabs << { name: 'revision', label: :label_change_plural,
  43. url: { :action => 'revision',
  44. :id => @project,
  45. :repository_id => @repository.identifier_param,
  46. :path => nil,
  47. :rev => @changeset.identifier}
  48. }
  49. tabs << { name: 'diff', label: :label_view_diff,
  50. url: { :action => 'diff',
  51. :id => @project,
  52. :repository_id => @repository.identifier_param,
  53. :path => "",
  54. :rev => @changeset.identifier }
  55. } if action_name == 'diff' || @changeset.filechanges.any?
  56. %>
  57. <%= render :partial => 'common/tabs', :locals => {:tabs => tabs, :selected_tab => action_name} %>
  58. <% end %>