Commit c0c8a30b authored by Chris Reffett's avatar Chris Reffett
Browse files

Bootstrapify the link display

parent 4fa2b76f
...@@ -7,47 +7,43 @@ a.share:visited {color:#000000;} ...@@ -7,47 +7,43 @@ a.share:visited {color:#000000;}
a.share:hover {color:#000000;} a.share:hover {color:#000000;}
</style> </style>
<div class="link-box"> <div class="col-md-8">
<strong>Long:</strong> <a href="{{url.target}}">{{url.target}}</a>
<p class="link"> <br />
<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}}
{% if url.owner = request.user and request.user|is_registered %} <br />
<strong>Clicks:</strong> {{url.clicks}}
<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%}"
<strong> onclick="return confirm('Are you sure you want to delete this link?');">
<a href="{%url 'delete' url.short%}" Delete
onclick="return confirm('Are you sure you want to delete this link?');"> </a>
Delete </strong>
</a> {% endif %}
</strong> </div>
{% endif %}
</p>
<p class="qr"> <div class="col-md-4">
{% qr_from_text url.get_absolute_url 100 %} {% qr_from_text url.get_absolute_url 's' %}
</p>
<p>
<a class="share" href="http://twitter.com/share?url={{ url.get_absolute_url }}" target="_blank" title="Share via Twitter"> <a class="share" href="http://twitter.com/share?url={{ url.get_absolute_url }}" target="_blank" title="Share via Twitter">
<i class="fa fa-twitter-square fa-3x"></i> <i class="fa fa-twitter-square fa-3x"></i>
</a> </a>
<a class="share" href="http://www.facebook.com/share.php?u={{ url.get_absolute_url }}" target="_blank" title="Share via Facebook"> <a class="share" href="http://www.facebook.com/share.php?u={{ url.get_absolute_url }}" target="_blank" title="Share via Facebook">
<i class="fa fa-facebook-square fa-3x"></i> <i class="fa fa-facebook-square fa-3x"></i>
</a> </a>
<a class="share" href="https://plus.google.com/share?url={{ url.get_absolute_url }}" target="_blank" title="Share via Google+"> <a class="share" href="https://plus.google.com/share?url={{ url.get_absolute_url }}" target="_blank" title="Share via Google+">
<i class="fa fa-google-plus-square fa-3x"></i> <i class="fa fa-google-plus-square fa-3x"></i>
</a> </a>
<a class="share" href="http://www.linkedin.com/shareArticle?mini=true&amp;url={{ url.get_absolute_url }}&amp;ro=false&amp;summary=&amp;source=" target="_blank" title="Share via LinkedIn"> <a class="share" href="http://www.linkedin.com/shareArticle?mini=true&amp;url={{ url.get_absolute_url }}&amp;ro=false&amp;summary=&amp;source=" target="_blank" title="Share via LinkedIn">
<i class="fa fa-linkedin-square fa-3x"></i> <i class="fa fa-linkedin-square fa-3x"></i>
</a> </a>
......
...@@ -8,12 +8,21 @@ Go - My Links ...@@ -8,12 +8,21 @@ Go - My Links
{% block content %} {% block content %}
<h3>~My Links~</h3> <div class="page-header" id="banner">
<div class="row">
<div class="col-md-12">
{% for url in urls %} <h1><strong>My Links</strong></h1>
{% include 'link_box.html' %}
{% empty %}
<p>None found.</p>
{% endfor %}
</div>
</div>
</div>
<div class="row">
{% for url in urls %}
{% include 'link_box.html' %}
{% empty %}
<p>None found.</p>
{% endfor %}
</div>
{% endblock %} {% 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