Added DMCA page

This commit is contained in:
Dominik V. Salonen 2015-12-28 16:38:13 +01:00
parent a8e6a09aa3
commit 170c26eaac
4 changed files with 18 additions and 0 deletions

3
run.py
View File

@ -119,6 +119,9 @@ def privacy():
@app.route('/faq')
def faq():
return render_template('faq.html', page=config["SITE_DATA"])
@app.route('/dmca')
def dmca():
return render_template('dmca.html', page=config["SITE_DATA"])
# Static resources that browsers spam for
@app.route('/favicon.ico')

View File

@ -115,3 +115,9 @@ ul {
ul li:before {
content: "- ";
}
.dmca {
width: 100%;
height: auto;
padding: 10px;
}

6
templates/dmca.html Normal file
View File

@ -0,0 +1,6 @@
{% extends "regular.html" %}
{% block body %}
<video class="dmca" autoplay loop>
<source src="{{ url_for('static', filename='media/DMCA.webm') }}">
</video>
{% endblock %}

View File

@ -25,6 +25,9 @@
<li>
<a href="/faq">FAQ</a>
</li>
<li>
<a href="/dmca">DMCA</a>
</li>
</ul>
<script>
document.getElementById("file").onchange = function() {