{% extends "base.html" %} {% load humanize %} {% block style %} body { font-family: Ubuntu, sans-serif } td { border: 0 } .files { color: #000; background: #fff; border-collapse: collapse; width: 57em; } .shorturl { border: 0; background: inherit; color: inherit; font: inherit; text-align: right } .filename, .u1url, .shorturl {font-family:monospace} .u1url, .shorturl { color: #777; font-size: 80%} .u1url a { text-decoration: none } .u1url a:hover { text-decoration: underline } .odd { background: #fff } .even { background: #f6f6f6 } .links { text-align: right; white-space: nowrap; } .links img { vertical-align: text-top } .action { cursor: pointer; width: 40px; height: 40px; background: center center no-repeat; opacity: .25 } .action:hover, .got .action { background-image: url({{ STATIC_URL }}images/star.png) } .action, .got .action:hover { background-image: url({{ STATIC_URL }}images/star_mono.png) } .got .action { opacity: 1 } .action:hover, .got .action:hover { opacity: .5 } .path-prefix { color: #999 } {% endblock %} {% block script %} function _create(basename, url) { var extra = prompt('what do you want to add to the URL?', '/'+basename); if (extra != null) { var form = document.getElementById('form'); form.verb.value = 'create'; form.url.value = url; form.extra.value = extra; form.submit(); } } function _delete(index) { var form = document.getElementById('form'); form.verb.value = 'delete'; form.index.value = index; form.submit(); } {% endblock %} {% block content %}

Give someone else an upload URL for my personal cloud

{% csrf_token %}
{% for file in files %} {% endfor %}
{% if file.short_url %}
{% else %}
{% endif %}
{{ file.trunc_path_prefix }}{{ file.trunc_path }}
{{ file.public_url }}
{% endblock %}