diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-03-23 19:25:48 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-03-23 19:25:48 +0000 |
| commit | a5042a986a05e9bedf779af133267257915a426b (patch) | |
| tree | 59d6719f7aee04716b07357336abfe44b02ee2d8 /app/templates/packages/view.html | |
| parent | dcfd2b00031a49042f35e1ebaefa05c21edf4c4f (diff) | |
| download | cheatdb-a5042a986a05e9bedf779af133267257915a426b.tar.xz | |
Add EditRequest view page
Diffstat (limited to 'app/templates/packages/view.html')
| -rw-r--r-- | app/templates/packages/view.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 4ccb4d7..9ed7def 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -86,4 +86,20 @@ <li>No releases available.</li> {% endfor %} </ul> + + {% if current_user.is_authenticated or package.requests %} + <h3>Edit Requests</h3> + + <ul> + {% for r in package.requests %} + <li> + <a href="{{ r.getURL() }}">{{ r.title }}</a> + by + <a href="{{ url_for('user_profile_page', username=r.author.username) }}">{{ r.author.display_name }}</a> + </li> + {% else %} + <li>No edit requests have been made.</li> + {% endfor %} + </ul> + {% endif %} {% endblock %} |
