{% extends "repo_master.html" %} {% from "_formhelper.html" import render_field_in_row, show_comment %} {% block title %} {%- if pull_request -%} PR#{{ requestid }}: {{ pull_request.title }} - {{ repo.name }} {%- else -%} Diff from {{ branch_from }} to {{ branch_to }} - {{ repo.name }} {%- endif -%} {% endblock %} {%block tag %}home{% endblock %} {% block header %} {% endblock %} {% block repo %}

Request pull {{ repo.name }} (tree)

{% if pull_request %}

Title: {{ pull_request.title | noJS | safe }}

{% endif %} {% if form and repo_admin %}
{% if remote_git %}
{% else %} {% endif %} {{ render_field_in_row(form.title, size=80) }} {% if remote_git %} {% endif %}
From branch: {{ branch_from }}
Git repo: {{ remote_git }}
To branch:

{{ form.csrf_token }}

{% endif %} {% if pull_request %}
By {{ pull_request.user.user | avatar(16) | safe }} {{ pull_request.user.fullname }} ({{ pull_request.user.user }})
From {{ pull_request.project_from.fullname or pull_request.remote_git }} ({{ pull_request.branch_from }})
To {{ pull_request.project.fullname }} ({{ pull_request.branch }})
Created {{ pull_request.date_created |humanize }}
Assignee {% if authenticated and mergeform and pull_request.status == True %}
{{ mergeform.csrf_token }}
{% else %} {{ pull_request.assignee.username or '' }} {% endif %}
{% if pull_request.flags %}
{% for flag in pull_request.flags %} {% endfor %}
{{ flag.percent }}% {{ flag.username }} {{ flag.comment }} {{ flag.date_created | humanize }}
{% endif %} {% endif %}
{% if authenticated and pull_request %}
{% endif %} {% if diff %} {% for patch in diff %}

{{ patch.new_file_path }}

  • {% if (patch.additions + patch.deletions) %} {% if patch.additions > 0 %}+{{ patch.additions }}{% endif %} {% if patch.deletions > 0 %}-{{ patch.deletions }}{% endif %} {% endif %}
  • {% if pull_request %} View {% else %} title="View file as of {{ patch.new_oid|short }}">View {% endif %}
{% autoescape false %} {{ patch | patch_to_diff | html_diff | format_loc( filename=patch.new_file_path, commit=patch.new_id or patch.new_oid, prequest=pull_request, index=loop.index)}} {% endautoescape %} {% endfor %}
{% endif %} {% if authenticated and pull_request %} {{ mergeform.csrf_token }}
{% endif %}
{% if pull_request %}
{% if pull_request.discussion %}
{% for comment in pull_request.discussion %} {% if not comment.commit_id %} {{ show_comment(comment, comment.id, repo, username, requestid, form, repo_admin) }} {% endif %} {% endfor %} {{ mergeform.csrf_token }}
{% endif %}
{% endif %}
{% if authenticated and mergeform and pull_request %}
{{ mergeform.csrf_token }}
(supports the Markdown syntax)
{% elif pull_request %}

Login to comment.

{% endif %}
{% endblock %} {% block jscripts %} {{ super() }} {% if config['EVENTSOURCE_SOURCE'] and pull_request %} {% endif %} {% endblock %}