link_box.html 736 Bytes
Newer Older
1
{% load go_extras %}
Jean Michel Rouly's avatar
Jean Michel Rouly committed
2
{% load qr_tags %}
3

4
<div class="link-box">
5 6

  <p class="link">
7 8 9 10 11 12
    <strong>Long:</strong> <a href="{{url.target}}">{{url.target}}</a>
    <br />

    <strong>Short:</strong> <a href="/{{url.short}}">{{url.short}}</a>
    <br />

13
    {% if url.owner = request.user and request.user|is_registered %}
14 15 16
    <strong>Clicks:</strong> {{url.clicks}}
    <br />

17
    <strong>Expires:</strong> {{url.expires|default_if_none:"Never"}}
18 19 20 21 22 23 24 25 26 27
    <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>
28 29 30 31 32

  <p class="qr">
    {% qr_from_text url.get_absolute_url 100 %}
  </p>

33
</div>