change title of the page
This commit is contained in:
@@ -228,14 +228,6 @@ def upload_url():
|
||||
|
||||
|
||||
|
||||
@app.route('/send/<name>', methods=['GET'])
|
||||
def send(name):
|
||||
(ok,share) = get_share(name)
|
||||
if not ok:
|
||||
return share
|
||||
return render_template('send.html',name=name)
|
||||
|
||||
|
||||
@app.route('/file/list/<name>/<token>', methods=['GET'])
|
||||
def file_list(name, token):
|
||||
(ok,share) = get_share(name, token = token)
|
||||
|
||||
@@ -146,3 +146,7 @@ function UploadURL() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function changeTitle(newTitle) {
|
||||
document.title = "Flees - " + newTitle;
|
||||
}
|
||||
|
||||
@@ -9,4 +9,5 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">changeTitle("{{ name | safe }}");</script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -30,4 +30,5 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<script type="text/javascript">changeTitle("{{ g.site_name | safe }}");</script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -94,4 +94,5 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<script type="text/javascript">changeTitle("{{ name | safe }}");</script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -4,4 +4,5 @@
|
||||
<p>You logged out from share <a href="{{ url_for('list_view',name=name) }}">{{ name|safe }}</a></p>
|
||||
<p>Continue to <a href="{{ url_for('index') }}">index</a></p>
|
||||
</div>
|
||||
<script type="text/javascript">changeTitle("{{ name | safe }}");</script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block body %}
|
||||
upload to {{ name|safe }}
|
||||
<form action={{ url_for('upload') }} method=post enctype=multipart/form-data>
|
||||
<input type=hidden name=name value="{{ name|safe }}" />
|
||||
<p><input type=file name=file onchange="function() { document.getElementById('upload_button').disabled = false; }">
|
||||
<input id="upload_button" type=submit value=Upload disabled>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user