anchor.diff:  
   <% if @merge_request.open? -%>
   <h2><%= t("views.merges.commits_to_merged") %>:</h2>
  -<% if logged_in? && @merge_request.resolvable_by?(current_user) && !@merge_request.possible_next_states.blank? -%>
  -<% help_box(:left) do -%>
  -<p>
  -  <%- if @merge_request.user == current_user -%>
  -  <%= t("views.merges.help_for_owners").call(url_for(:action => :edit)) -%>
  -  <%- else -%>
  -  <%= t("views.merges.help") %> 
  -  <%- end -%>
  -  <small>
  -    <%= link_to_function(t("views.merges.example"), 
  -          "$('detailed_merge_request_help').toggle()", :class => "more_info") -%>
  -  </small>
  -</p>
  -<pre id="detailed_merge_request_help" style="display:none;">
  -<%- if @merge_request.user == current_user -%>
  -git push <%= @merge_request.target_repository.push_url -%> \
  -  <%= @merge_request.source_branch -%>:<%= @merge_request.merge_branch_name -%>
  -<%- else -%>
  -  git checkout master
  -  git remote add <%= @merge_request.source_repository.user.login -%> <%= @merge_request.source_repository.clone_url %>
  -  git fetch <%= @merge_request.source_repository.user.login %>
  -  git checkout -b <%= @merge_request.source_repository.user.login -%>-review <%= @merge_request.source_repository.user.login -%>/<%= @merge_request.source_branch || 'master' %>
  -  <% if @merge_request.applies_to_specific_commits? -%>
  -  git reset --hard <%=h @merge_request.ending_commit -%>
  -  <% end %>
  -  # review changes, assess they are ok
  -  git checkout <%= @merge_request.target_branch || 'master' %>
  -  git merge <%= @merge_request.source_repository.user.login -%>/<%= @merge_request.source_branch || 'master' %>
  -  git push origin <%= @merge_request.target_branch || 'master' -%>
  -<%- end -%>
  -</pre>
  -<% end -%>
  -<% end -%>
  -
   <% else -%>
   <h2><%= t("views.merges.commits") %>:</h2>
   <% end -%>
  
positive.code:   <%= button_to t('views.merges.reopen_btn'), repo_owner_path(@merge_request.target_repository,
        [:reopen, @merge_request.target_repository.project, @merge_request.target_repository, @merge_request]), :method => :put, :confirm => 'Are you sure you want to repoen this merge request?' %>
  <%- end -%>
  
  
    
  
  
negative.code: 
  <%= render :partial => "comments/form", :locals => { :parent => @merge_request } -%>
  
  
  <% if @merge_request.open? -%>
  <% if logged_in? && @merge_request.resolvable_by?(current_user) && !@merge_request.possible_next_states.blank? -%>
  <% help_box(:left) do -%>
  <p>
    <%- if @merge_request.user == current_user -%>
    <%= t("views.merges.help_for_owners").call(url_for(:action => :edit)) -%>
    <%- else -%>
    <%= t("views.merges.help") %> 
    <%- end -%>
    <small>
      <%= link_to_function(t("views.merges.example"), 
            "$('detailed_merge_request_help').toggle()", :class => "more_info") -%>
    </small>
  </p>
  <pre id="detailed_merge_request_help" style="display:none;">
  <%- if @merge_request.user == current_user -%>
  git push <%= @merge_request.target_repository.push_url -%> \
    <%= @merge_request.source_branch -%>:<%= @merge_request.merge_branch_name -%>
  <%- else -%>
    git checkout master
    git remote add <%= @merge_request.source_repository.user.login -%> <%= @merge_request.source_repository.clone_url %>
    git fetch <%= @merge_request.source_repository.user.login %>
    git checkout -b <%= @merge_request.source_repository.user.login -%>-review <%= @merge_request.source_repository.user.login -%>/<%= @merge_request.source_branch || 'master' %>
    <% if @merge_request.applies_to_specific_commits? -%>
    git reset --hard <%=h @merge_request.ending_commit -%>
    <% end %>
    # review changes, assess they are ok
    git checkout <%= @merge_request.target_branch || 'master' %>
    git merge <%= @merge_request.source_repository.user.login -%>/<%= @merge_request.source_branch || 'master' %>
    git push origin <%= @merge_request.target_branch || 'master' -%>
  <%- end -%>
  </pre>
  <% end -%>
  <% end -%>
    
  <% end -%>
  
  <%- if @merge_request.user == current_user -%>
    <%= button_to t('views.merges.update_btn'), repo_owner_path(@merge_request.target_repository,
        [:edit, @merge_request.source_repository.project, @merge_request.target_repository, @merge_request]), :method => :get %>
  