change title of the page

This commit is contained in:
2018-07-02 14:41:49 +03:00
parent c8041cd0bf
commit 913de10f8c
8 changed files with 12 additions and 18 deletions

View File

@@ -9,4 +9,5 @@
</form>
</div>
</div>
<script type="text/javascript">changeTitle("{{ name | safe }}");</script>
{% endblock %}

View File

@@ -30,4 +30,5 @@
{% endfor %}
</tbody>
</table>
<script type="text/javascript">changeTitle("{{ g.site_name | safe }}");</script>
{% endblock %}

View File

@@ -94,4 +94,5 @@
{% endfor %}
</ul>
</div>
<script type="text/javascript">changeTitle("{{ name | safe }}");</script>
{% endblock %}

View File

@@ -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 %}

View File

@@ -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 %}