login/logout/register

This commit is contained in:
j 2013-02-13 16:55:56 +05:30
commit d3e68f5ba0
8 changed files with 101 additions and 1 deletions

View file

@ -13,7 +13,10 @@ var UPLOAD_URL = "{{PREFIX}}/add";
<h1>videopdf</h1>
{% if anonymous %}
<div>
you need an account
You have to
<a href="{{PREFIX}}/login">login</a>
or <a href="{{PREFIX}}register">register</a>.
</div>
{% else %}
<div>
@ -23,6 +26,11 @@ var UPLOAD_URL = "{{PREFIX}}/add";
<input id="upload" type="button" value="Upload" style="display: none" />
</form>
</div>
<ul>
{% for item in items %}
<li><a href="{{item.get_absolute_url}}">{{item.filename}}</a></li>
{% endfor %}
</ul>
{% endif %}
</body>
</html>