summaryrefslogtreecommitdiffstats
path: root/app/views/issues/_conflict.html.erb
blob: c13ace665eab4262544e3033b02f67a958d6337a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div class="conflict">
  <%= l(:notice_issue_update_conflict) %> 
  <% if @conflict_journals.present? %>
    <div class="conflict-details">
    <% @conflict_journals.sort_by(&:id).each do |journal| %>
      <p><%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %></p>
      <% if journal.details.any? %>
      <ul class="details">
        <% details_to_strings(journal.details).each do |string| %>
         <li><%= string %></li>
        <% end %>
      </ul>
      <% end %>
      <div class="wiki">
        <%= textilizable(journal, :notes) unless journal.notes.blank? %>
      </div>
    <% end %>
    </div>
  <% end %>
</div>
<p>
  <label><%= radio_button_tag 'conflict_resolution', 'overwrite' %> <%= l(:text_issue_conflict_resolution_overwrite) %></label><br />
  <% if @issue.notes.present? %>
  <label><%= radio_button_tag 'conflict_resolution', 'add_notes' %> <%= l(:text_issue_conflict_resolution_add_notes) %></label><br />
  <% end %>
  <label><%= radio_button_tag 'conflict_resolution', 'cancel' %> <%= l(:text_issue_conflict_resolution_cancel, :link => link_to_issue(@issue, :subject => false)).html_safe %></label>
</p>
<p><%= submit_tag l(:button_submit) %></p>