Commit 0be4e426 authored by David Haynes's avatar David Haynes 🙆
Browse files

Tidy up list of links page. Closes #19

- more spacing, easier on the eyes, pretty nice imo
- david needs to work in branches edition (I swear it works though)
parent 59c9c5ce
......@@ -6,58 +6,64 @@
a.share:visited {color:#000000;}
a.share:hover {color:#000000;}
a.share {text-decoration:none;}
legend {
font-size: inherit;
}
</style>
<div class="col-md-8">
<strong>Long:</strong> <a href="{{url.target}}">{{url.target}}</a>
<br />
<div class="container">
<div class="col-md-8">
<strong>Long:</strong> <a href="{{url.target}}">{{url.target}}</a>
<br />
<strong>Short:</strong> <a href="/{{url.short}}">{{url.short}}</a>
<br />
<strong>Short:</strong> <a href="/{{url.short}}">{{url.short}}</a>
<br />
{% if url.owner = request.user and request.user|is_registered %}
<strong>Clicks:</strong> {{url.clicks}}
<br />
{% if url.owner = request.user and request.user|is_registered %}
<strong>Clicks:</strong> {{url.clicks}}
<br />
<strong>QR Code Uses:</strong> {{url.qrclicks}}
<br />
<strong>Social Clicks:</strong> {{url.socialclicks}}
<br />
<strong>QR Code Uses:</strong> {{url.qrclicks}}
<br />
<strong>Social Clicks:</strong> {{url.socialclicks}}
<br />
<strong>Expires:</strong> {{url.expires|default_if_none:"Never"}}
<br />
<strong>Expires:</strong> {{url.expires|default_if_none:"Never"}}
<br />
<strong>
<a href="{%url 'delete' url.short%}"
onclick="return confirm('Are you sure you want to delete this link?');">
Delete
</a>
</strong>
{% endif %}
</div>
<strong>
<a href="{%url 'delete' url.short%}"
onclick="return confirm('Are you sure you want to delete this link?');">
Delete
</a>
</strong>
{% endif %}
<br></br>
</div>
<div class="col-md-4">
{% with domain|add:url.short as the_url %}
{% with the_url|add:"?qr" as qr_url%}
{% qr_from_text qr_url 's' %}
{% endwith %}
<div class="col-md-4">
{% with domain|add:url.short as the_url %}
{% with the_url|add:"?qr" as qr_url%}
{% qr_from_text qr_url 's' %}
{% endwith %}
{% with the_url|add:"?social" as social_url %}
<a class="share" href="http://twitter.com/share?url={{ social_url }}" target="_blank" title="Share via Twitter">
<i class="fa fa-twitter-square fa-3x"></i>
</a>
{% with the_url|add:"?social" as social_url %}
<a class="share" href="http://twitter.com/share?url={{ social_url }}" target="_blank" title="Share via Twitter">
<i class="fa fa-twitter-square fa-3x"></i>
</a>
<a class="share" href="http://www.facebook.com/share.php?u={{ social_url }}" target="_blank" title="Share via Facebook">
<i class="fa fa-facebook-square fa-3x"></i>
</a>
<a class="share" href="http://www.facebook.com/share.php?u={{ social_url }}" target="_blank" title="Share via Facebook">
<i class="fa fa-facebook-square fa-3x"></i>
</a>
<a class="share" href="https://plus.google.com/share?url={{ social_url }}" target="_blank" title="Share via Google+">
<i class="fa fa-google-plus-square fa-3x"></i>
</a>
<a class="share" href="https://plus.google.com/share?url={{ social_url }}" target="_blank" title="Share via Google+">
<i class="fa fa-google-plus-square fa-3x"></i>
</a>
<a class="share" href="http://www.linkedin.com/shareArticle?mini=true&amp;url={{ social_url }}&amp;ro=false&amp;summary=&amp;source=" target="_blank" title="Share via LinkedIn">
<i class="fa fa-linkedin-square fa-3x"></i>
</a>
<a class="share" href="http://www.linkedin.com/shareArticle?mini=true&amp;url={{ social_url }}&amp;ro=false&amp;summary=&amp;source=" target="_blank" title="Share via LinkedIn">
<i class="fa fa-linkedin-square fa-3x"></i>
</a>
{% endwith %}
{% endwith %}
{% endwith %}
</div>
</div>
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