{% extends "repo_master.html" %} {% from "_formhelper.html" import show_comment, show_pr_initial_comment, render_bootstrap_field %} {% from "_repo_renderdiff.html" import repo_renderdiff %} {% from "_projectstring.html" import projectstring, projecticon %} {% block title %} {%- if pull_request -%} PR#{{ requestid }}: {{ pull_request.title | noJS(ignore="img") | safe }} {%- elif form and (g.repo_committer or remote_git) -%} Create new Pull Request for {{ branch_to }} {%- else -%} Diff from {{ branch_from }} to {{ branch_to }} {%- endif %} - {{ repo.url_path }} {% endblock %} {% set tag = "home" %} {% block header %} {% endblock %} {% block repo %}

{% if form and (g.repo_committer or remote_git) %} Create Pull Request {% else %} Diff {% endif%}
{% if diff %} {{diff_commits | length}} commit{{'s' if diff_commits | length > 1 }}, {{diff.stats.files_changed}} file{{'s' if diff.stats.files_changed > 1 }} changed {% else %} no changes {% endif %}
{% if diff %} +{{diff.stats.insertions}} -{{diff.stats.deletions}} {% else %} +0 -0 {% endif %}

{% if form and (g.repo_committer or remote_git) %}
{% if remote_git and not (config.get('DISABLE_REMOTE_PR', True)) %}
{% else %} {% endif %}
Pull from {%- if remote_git -%} {{ remote_git }} {%- else -%} {%- if repo.is_fork -%}   {%- else -%}   {%- endif -%} {%- if repo.namespace -%} {{repo.namespace}}/ {%- endif -%} {%- if repo.is_fork -%} {{ repo.user.user }}/ {%- endif -%} {{repo.name}} {%- endif -%} {{ branch_from }} to {%- if parent.is_fork -%}   {%- else -%}   {%- endif -%} {%- if parent.namespace -%} {{parent.namespace}}/ {%- endif -%} {%- if parent.is_fork -%} {{ parent.user.user }}/ {%- endif -%} {{parent.name}} {{ branch_to }}
{% if contributing %}
{{ contributing | markdown | noJS | safe}}
{% endif %}
{{ form.title(class_="form-control", placeholder="Pull Request Title", required="required")|safe }} {% if form.title.errors %} {% for error in form.title.errors %} {{ error }}  {% endfor %} {% endif %}
{% if form.initial_comment.errors %} {% for error in form.initial_comment.errors %} {{ error }}  {% endfor %} {% endif %}
Let the maintainer of the target project to rebase the pull-request
{{ form.csrf_token }}
{% endif %}
{% for commit in diff_commits %} {% set commit_link = url_for('ui_ns.view_commit', repo=repo.name, username=username, namespace=repo.namespace, commitid=commit.oid.hex) %} {% set tree_link = url_for( 'ui_ns.view_tree', username=username, namespace=repo.namespace, repo=repo.name, identifier=commit.hex) %}
{% if commit_link %} {% endif %} {{ commit.message.strip().split('\n')[0] }} {% if commit_link %} {% endif %}
{{commit.author|author2user_commits( link=url_for('ui_ns.view_commits', repo=repo.name, branchname=branchname, username=username, namespace=repo.namespace, author=commit.author.email), cssclass="notblue")|safe}} • {{ commit.commit_time|humanize }}  
{% else %}

No commits found

{% endfor %}
{{repo_renderdiff(diff=diff, diff_commits=diff_commits, pull_request=pull_request, repo=repo, username=username, namespace=namespace)}}
{# modal to change the target repo
#} {% endblock %} {% block jscripts %} {{ super() }} {% endblock %}