]> git.lizzy.rs Git - cheatdb.git/blob - app/templates/packages/editrequest_view.html
Add EditRequest view page
[cheatdb.git] / app / templates / packages / editrequest_view.html
1 {% extends "base.html" %}
2
3 {% block title %}
4         {{ request.title }} - {{ package.title }}
5 {% endblock %}
6
7 {% block content %}
8         <h1>{{ request.title }} by {{ request.author.display_name }}</h1>
9         <p>
10                 Package: <a href="{{ package.getDetailsURL() }}">{{ package.title }}</a>
11         </p>
12         <p>
13                 {% if request.desc %}
14                         {{ request.desc }}
15                 {% else %}
16                         <i>No description given</i>
17                 {% endif %}
18         </p>
19
20         <table>
21                 <tr>
22                         <th>Property</th>
23                         <th>Old</th>
24                         <th>New</th>
25                 </tr>
26
27                 {% for change in request.changes %}
28                         <tr>
29                                 <td>{{ change.key.value }}</td>
30                                 <td>{{ change.oldValue }}</td>
31                                 <td>{{ change.newValue }}</td>
32                         </tr>
33                 {% endfor %}
34 {% endblock %}