{% 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 %} {% if pull_request %}

Pull Request: {{ pull_request.title | noJS(ignore="img") | safe }}{% if authenticated and (g.fas_user.username == pull_request.user.username or repo_admin) and pull_request.status == 'Open' %}{% endif %}

{% else %}

Diff (tree)

{% endif %} {% if form and (repo_admin or remote_git) %}
{% if remote_git %}
{% else %} {% endif %} {{ render_field_in_row(form.title, size=80) }}
From git repo: {% if remote_git -%} {{ remote_git }} {%- else -%} {{ repo.fullname}} {%- endif %}
From branch: {{ branch_from }}
To git repo: {% if repo.is_fork -%} {{ repo.parent.fullname }} {% else %} {{ repo.fullname }} {% endif %}
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 %}
{% for commit in diff_commits %} {% if commit.message.strip().split('\n') | length > 1 %} {% else %} {% endif %} {% else %} {% endfor %}
{{ commit.oid.hex|short }} {% if pull_request and pull_request.status and pull_request.project_from.is_fork %} {% elif pull_request and pull_request.remote %} {% else %} {% endif %} {{ commit.message.strip().split('\n')[0] }}
{{ commit.message.strip().split('\n')[2:] | join('\n') }}
more {{ commit.commit_time|humanize }}
No commits found
{% if authenticated and pull_request %}
{% endif %} {% if diff %} {% for patch in diff %}

{%- if patch.new_file_path == patch.old_file_path -%} {{ patch.new_file_path }} {%- else -%} {{ patch.new_file_path }} (Renamed from "{{ patch.old_file_path }}") {%- endif -%}

  • {% 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 %}