2018-03-23 20:25:48 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ request.title }} - {{ package.title }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>{{ request.title }} by {{ request.author.display_name }}</h1>
|
|
|
|
<p>
|
2018-05-13 16:40:37 +02:00
|
|
|
{% if request.status != 1 and request.status != 2 and request.checkPerm(current_user, 'EDIT_EDITREQUEST') %}
|
|
|
|
<a href="{{ request.getEditURL() }}">Edit</a> |
|
|
|
|
{% endif %}
|
2018-03-23 20:25:48 +01:00
|
|
|
Package: <a href="{{ package.getDetailsURL() }}">{{ package.title }}</a>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{% if request.desc %}
|
|
|
|
{{ request.desc }}
|
|
|
|
{% else %}
|
|
|
|
<i>No description given</i>
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
2018-03-23 20:49:57 +01:00
|
|
|
{% if request.status == 1 %}
|
|
|
|
<div class="box box_grey alert alert-success">
|
|
|
|
This edit request was merged.
|
|
|
|
</div>
|
|
|
|
{% elif request.status == 2 %}
|
|
|
|
<div class="box box_grey alert alert-error">
|
|
|
|
This edit request was rejected.
|
|
|
|
</div>
|
|
|
|
{% elif package.checkPerm(current_user, "APPROVE_CHANGES") %}
|
|
|
|
<div class="box box_grey">
|
2018-05-13 19:37:57 +02:00
|
|
|
<form method="post" action="{{ request.getApproveURL() }}">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
|
<input type="submit" value="Approve and Apply" />
|
|
|
|
</form>
|
|
|
|
<form method="post" action="{{ request.getRejectURL() }}">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
|
<input type="submit" value="Reject" />
|
|
|
|
</form>
|
2018-03-23 20:49:57 +01:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2018-03-23 20:25:48 +01:00
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Property</th>
|
|
|
|
<th>Old</th>
|
|
|
|
<th>New</th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
{% for change in request.changes %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ change.key.value }}</td>
|
|
|
|
<td>{{ change.oldValue }}</td>
|
|
|
|
<td>{{ change.newValue }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
{% endblock %}
|