playlistShorten/urlweb/templates/shortener/index.html

28 lines
693 B
HTML
Raw Permalink Normal View History

2011-07-20 15:25:26 +00:00
{% extends "base.html" %}
{% block content %}
<h2>Recent Links</h2>
<ul>
{% for link in recent_links %}
2011-07-28 19:02:17 +00:00
<li><a href="{{ link.short_url }}">{{ link.display_url }}</a> (Score: {{ link.usage_count }})
2011-07-20 15:25:26 +00:00
(<a href="{% url shortener.views.info link.to_base62 %}">Info</a>)</li>
{% endfor %}
</ul>
<h2>Most Popular Links</h2>
<ul>
{% for link in most_popular_links %}
2011-07-28 19:02:17 +00:00
<li><a href="{{ link.short_url }}">{{ link.display_url }}</a> (Score: {{ link.usage_count }})
2011-07-20 15:25:26 +00:00
(<a href="{% url shortener.views.info link.to_base62 %}">Info</a>)</li>
{% endfor %}
</ul>
{% endblock %}
{% block extra_body %}
<script>
$(document).ready(
function() {
$("#id_u").focus().select();
});
</script>
{% endblock %}