diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index e0eaad4..c2f5387 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -24,39 +24,44 @@ {% block repo %}
| 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: | -{{ branch_to }} | -
| {{ flag.percent }}% | +{{ flag.username }} | +{{ flag.comment }} | ++ {{ flag.date_created | humanize }} + | +
| {{ 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] }} + + + | + {% if commit.message.strip().split('\n') | length > 1 %} +more | + {% else %} ++ {% endif %} + | + {{ commit.commit_time|humanize }} | +
| No commits found |
Login to comment on this ticket.
+ {% endif %} +| By |
@@ -208,9 +423,9 @@
| Created |
- {{ pull_request.date_created |humanize }}
+ {{ pull_request.date_created |humanize }}
|
- | ||
|---|---|---|---|---|---|
| Assignee |
@@ -231,90 +446,7 @@
-
-
-
- {% if pull_request.flags %}
-
-
-{% endif %}
-
-
-
-
-
-
-
- {% endif %}
-
-
-
-
+ {% endif %}
{% if diff %}
-
-
- {% if pull_request %}
-
@@ -370,142 +502,7 @@
-
- {% endif %}
-
-
{% endblock %}
@@ -603,23 +600,6 @@ function setup_reply_btns() {
}
});
- $( ".nav-item" ).click(
- function() {
- var header = $( this ).attr('data-id');
- if (header == 'nav-diff') {
- $($(this).parent().children()[1]).removeClass('active');
- $(this).addClass('active');
- $('#commit_list').hide();
- $('#request_diff').show();
- } else {
- $($(this).parent().children()[0]).removeClass('active');
- $(this).addClass('active');
- $('#request_diff').hide();
- $('#commit_list').show();
- }
- }
- );
-
{% if pull_request %}
{# These lines are only for existing pull-requests, not new ones #}
@@ -761,11 +741,29 @@ function setup_reply_btns() {
},
dataType: 'json',
success: function(res) {
- var _obj = $('#pr_flags').find('tbody');
- _obj.append($('
-
-
Login to comment on this ticket. - {% endif %} - | ||||
| PR Status: | '+res.short_code+' |