Add link to original screenshot in edit screenshot page

This commit is contained in:
rubenwardy 2018-07-28 16:05:09 +01:00
parent c298f64295
commit 1c7a192854
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
2 changed files with 11 additions and 5 deletions

@ -604,6 +604,14 @@ class PackageRelease(db.Model):
def __init__(self):
self.releaseDate = datetime.now()
class PackageReview(db.Model):
id = db.Column(db.Integer, primary_key=True)
package_id = db.Column(db.Integer, db.ForeignKey("package.id"))
thread_id = db.Column(db.Integer, db.ForeignKey("thread.id"), nullable=False)
recommend = db.Column(db.Boolean, nullable=False, default=True)
class PackageScreenshot(db.Model):
id = db.Column(db.Integer, primary_key=True)
package_id = db.Column(db.Integer, db.ForeignKey("package.id"))
@ -765,10 +773,6 @@ class ThreadReply(db.Model):
created_at = db.Column(db.DateTime, nullable=False, default=datetime.utcnow)
REPO_BLACKLIST = [".zip", "mediafire.com", "dropbox.com", "weebly.com", \
"minetest.net", "dropboxusercontent.com", "4shared.com", \
"digitalaudioconcepts.com", "hg.intevation.org", "www.wtfpl.net", \

@ -5,7 +5,9 @@
{% endblock %}
{% block content %}
<img src="{{ screenshot.getThumbnailURL() }}" alt="{{ screenshot.title }}" />
<a href="{{ screenshot.url }}">
<img src="{{ screenshot.getThumbnailURL() }}" alt="{{ screenshot.title }}" />
</a>
{% from "macros/forms.html" import render_field, render_submit_field %}
<form method="POST" action="" enctype="multipart/form-data">