Commit 589c13b3 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Added link preview page.

parent ffd2c75e
{% extends 'base.html' %}
{% block title %}
Go - Success
{% endblock %}
{% block content %}
{% if url %}
<div id="mylinks">
<p>
<strong>Long:</strong> <a href="{{url.target}}">{{url.target}}</a>
<br />
<strong>Short:</strong> <a href="/{{url.short}}">{{url.short}}</a>
<br />
{% if url.owner = request.user %}
<strong>Clicks:</strong> {{url.clicks}}
<br />
<strong>Expires:</strong> {{url.expires}}
<br />
<strong>
<a href="{%url 'delete' url.short%}"
onclick="return confirm('Are you sure you want to delete this link?');">
Delete
</a>
</strong>
{% endif %}
</p>
</div>
{% else %}
<p>Nothing here.</p>
{% endif %}
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment