videopdf/templates/index.html

37 lines
1,023 B
HTML
Raw Permalink Normal View History

2013-02-12 13:19:31 +00:00
<!DOCTYPE html>
2013-02-12 07:09:52 +00:00
<html>
2013-02-12 13:19:31 +00:00
<head>
2013-02-12 14:06:39 +00:00
<title>videopdf</title>
2013-02-13 07:14:57 +00:00
<script type="text/javascript">
var UPLOAD_URL = "{{PREFIX}}/add";
</script>
2013-02-12 14:35:30 +00:00
<script src="{{PREFIX}}/static/js/jquery.js" type="text/javascript"></script>
<script src="{{PREFIX}}/static/js/chunkupload.js" type="text/javascript"></script>
<script src="{{PREFIX}}/static/js/upload.js?1" type="text/javascript"></script>
2013-02-12 07:09:52 +00:00
</head>
<body>
2013-02-12 13:19:31 +00:00
<h1>videopdf</h1>
{% if anonymous %}
<div>
2013-02-13 11:25:56 +00:00
You have to
<a href="{{PREFIX}}/login">login</a>
2013-02-14 10:01:13 +00:00
or <a href="{{PREFIX}}/register">register</a>.
2013-02-13 11:25:56 +00:00
2013-02-12 13:19:31 +00:00
</div>
{% else %}
<div>
<div id='status'></div>
<form id="addFile">
<input id="file" name="file" type="file" value="Select File.." />
<input id="upload" type="button" value="Upload" style="display: none" />
</form>
</div>
2013-02-13 11:25:56 +00:00
<ul>
{% for item in items %}
<li><a href="{{item.get_absolute_url}}">{{item.filename}}</a></li>
{% endfor %}
</ul>
2013-02-12 13:19:31 +00:00
{% endif %}
2013-02-12 07:09:52 +00:00
</body>
</html>