login/logout/register
This commit is contained in:
parent
b91cbbe8fb
commit
d3e68f5ba0
8 changed files with 101 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue