diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-03-26 10:52:25 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-03-26 10:52:25 +0100 |
| commit | c19f93e36db24303b77757d5cfe6c9ec2aaee30e (patch) | |
| tree | db2a03c7a985ff6d8ed9db2147a48aabf03f36b5 /app/templates/packages/view.html | |
| parent | 4b7bf9d778046c96a0d699700a208cdc0ab6076a (diff) | |
| download | cheatdb-c19f93e36db24303b77757d5cfe6c9ec2aaee30e.tar.xz | |
Add screenshot support
Fixes #21
Diffstat (limited to 'app/templates/packages/view.html')
| -rw-r--r-- | app/templates/packages/view.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 76a96ac..58631c9 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -18,6 +18,16 @@ <h1>{{ package.title }} by {{ package.author.display_name }}</h1> + <ul class="screenshot_list"> + {% for ss in package.screenshots %} + <li> + <a href="{{ ss.url }}"> + <img src="{{ ss.getThumbnailURL() }}" alt="{{ ss.title }}" /> + </a> + </li> + {% endfor %} + </ul> + <aside class="asideright box box_grey"> <table> <tr> @@ -46,6 +56,7 @@ {% if package.website %}<li><a href="{{ package.website }}">Website</a></li>{% endif %} {% if package.checkPerm(current_user, "EDIT_PACKAGE") %} <li><a href="{{ package.getEditURL() }}">Edit</a></li> + <li><a href="{{ package.getNewScreenshotURL() }}">Add screenshot</a></li> {% elif current_user.is_authenticated %} <li><a href="{{ package.getCreateEditRequestURL() }}">Suggest Change</a></li> {% endif %} |
