annotate .svn/pristine/65/65791f19c5af486070aa75cc22e3ffc901bf47ba.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 <div class="contextual">
Chris@1464 2 &#171;
Chris@1464 3 <% unless @changeset.previous.nil? -%>
Chris@1464 4 <%= link_to_revision(@changeset.previous, @repository, :text => l(:label_previous)) %>
Chris@1464 5 <% else -%>
Chris@1464 6 <%= l(:label_previous) %>
Chris@1464 7 <% end -%>
Chris@1464 8 |
Chris@1464 9 <% unless @changeset.next.nil? -%>
Chris@1464 10 <%= link_to_revision(@changeset.next, @repository, :text => l(:label_next)) %>
Chris@1464 11 <% else -%>
Chris@1464 12 <%= l(:label_next) %>
Chris@1464 13 <% end -%>
Chris@1464 14 &#187;&nbsp;
Chris@1464 15
Chris@1464 16 <%= form_tag({:controller => 'repositories',
Chris@1464 17 :action => 'revision',
Chris@1464 18 :id => @project,
Chris@1464 19 :repository_id => @repository.identifier_param,
Chris@1464 20 :rev => nil},
Chris@1464 21 :method => :get) do %>
Chris@1464 22 <%= text_field_tag 'rev', @rev, :size => 8 %>
Chris@1464 23 <%= submit_tag 'OK', :name => nil %>
Chris@1464 24 <% end %>
Chris@1464 25 </div>
Chris@1464 26
Chris@1464 27 <h2><%= avatar(@changeset.user, :size => "24") %><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
Chris@1464 28
Chris@1464 29 <% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
Chris@1464 30 <table class="revision-info">
Chris@1464 31 <% if @changeset.scmid.present? %>
Chris@1464 32 <tr>
Chris@1464 33 <td>ID</td><td><%= h(@changeset.scmid) %></td>
Chris@1464 34 </tr>
Chris@1464 35 <% end %>
Chris@1464 36 <% if @changeset.parents.present? %>
Chris@1464 37 <tr>
Chris@1464 38 <td><%= l(:label_parent_revision) %></td>
Chris@1464 39 <td>
Chris@1464 40 <%= @changeset.parents.collect{
Chris@1464 41 |p| link_to_revision(p, @repository, :text => format_revision(p))
Chris@1464 42 }.join(", ").html_safe %>
Chris@1464 43 </td>
Chris@1464 44 </tr>
Chris@1464 45 <% end %>
Chris@1464 46 <% if @changeset.children.present? %>
Chris@1464 47 <tr>
Chris@1464 48 <td><%= l(:label_child_revision) %></td>
Chris@1464 49 <td>
Chris@1464 50 <%= @changeset.children.collect{
Chris@1464 51 |p| link_to_revision(p, @repository, :text => format_revision(p))
Chris@1464 52 }.join(", ").html_safe %>
Chris@1464 53 </td>
Chris@1464 54 </tr>
Chris@1464 55 <% end %>
Chris@1464 56 </table>
Chris@1464 57 <% end %>
Chris@1464 58
Chris@1464 59 <p>
Chris@1464 60 <span class="author">
Chris@1464 61 <%= authoring(@changeset.committed_on, @changeset.author) %>
Chris@1464 62 </span>
Chris@1464 63 </p>
Chris@1464 64
Chris@1464 65 <%= textilizable @changeset.comments %>
Chris@1464 66
Chris@1464 67 <% if @changeset.issues.visible.any? || User.current.allowed_to?(:manage_related_issues, @repository.project) %>
Chris@1464 68 <%= render :partial => 'related_issues' %>
Chris@1464 69 <% end %>
Chris@1464 70
Chris@1464 71 <% if User.current.allowed_to?(:browse_repository, @project) %>
Chris@1464 72 <h3><%= l(:label_attachment_plural) %></h3>
Chris@1464 73 <ul id="changes-legend">
Chris@1464 74 <li class="change change-A"><%= l(:label_added) %></li>
Chris@1464 75 <li class="change change-M"><%= l(:label_modified) %></li>
Chris@1464 76 <li class="change change-C"><%= l(:label_copied) %></li>
Chris@1464 77 <li class="change change-R"><%= l(:label_renamed) %></li>
Chris@1464 78 <li class="change change-D"><%= l(:label_deleted) %></li>
Chris@1464 79 </ul>
Chris@1464 80
Chris@1464 81 <p><%= link_to(l(:label_view_diff),
Chris@1464 82 :action => 'diff',
Chris@1464 83 :id => @project,
Chris@1464 84 :repository_id => @repository.identifier_param,
Chris@1464 85 :path => "",
Chris@1464 86 :rev => @changeset.identifier) if @changeset.filechanges.any? %></p>
Chris@1464 87
Chris@1464 88 <div class="changeset-changes">
Chris@1464 89 <%= render_changeset_changes %>
Chris@1464 90 </div>
Chris@1464 91 <% end %>
Chris@1464 92
Chris@1464 93 <% content_for :header_tags do %>
Chris@1464 94 <%= stylesheet_link_tag "scm" %>
Chris@1464 95 <% end %>
Chris@1464 96
Chris@1464 97 <%
Chris@1464 98 title = "#{l(:label_revision)} #{format_revision(@changeset)}"
Chris@1464 99 title << " - #{truncate(@changeset.comments, :length => 80)}"
Chris@1464 100 html_title(title)
Chris@1464 101 -%>