diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 3ab36de..d79b5f0 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -205,7 +205,7 @@ {% if pull_request and pull_request.status and pull_request.project_from.is_fork %} - {% elif pull_request.remote %} + {% elif pull_request and pull_request.remote %} {% else %} @@ -215,7 +215,7 @@ {{ commit.commit_time|humanize }} - {% if not pull_request.remote %} + {% if pull_request and not pull_request.remote %} {% endif %}