blob: c16ec5a66208b90cd2878b7af15b1e2f7ac7fce8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{% extends "base.html" %}
{% block title %}
{{ request.title }} - {{ package.title }}
{% endblock %}
{% block content %}
<h1>{{ request.title }} by {{ request.author.display_name }}</h1>
<p>
{% if request.status != 1 and request.status != 2 and request.checkPerm(current_user, 'EDIT_EDITREQUEST') %}
<a href="{{ request.getEditURL() }}">Edit</a> |
{% endif %}
Package: <a href="{{ package.getDetailsURL() }}">{{ package.title }}</a>
</p>
<p>
{% if request.desc %}
{{ request.desc }}
{% else %}
<i>No description given</i>
{% endif %}
</p>
{% 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-danger">
This edit request was rejected.
</div>
{% elif package.checkPerm(current_user, "APPROVE_CHANGES") %}
<div class="box box_grey alert">
Request can be merged.
<div class="alert_right">
<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>
</div>
</div>
{% endif %}
<table class="fancyTable t-mll">
<thead>
<tr>
<th>Property</th>
<th>Old</th>
<th>New</th>
</tr>
</thead>
<tbody>
{% for change in request.changes %}
<tr>
<td>{{ change.key.value }}</td>
<td>{{ change.oldValue }}</td>
<td>{{ change.newValue }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
|