Find file
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (74 sloc) 4.02 KB
{% comment %}
// Variables for this template:
// urly - this is an urly instance to show (we use code and href properties)
// error_404 - an error message to show the user
// default_href - default href to dump into text area. Why do we have this?
// error_href - set when we have an improperly formatted href
{% endcomment %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<title> - dang short urls</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta property="og:title" content="" />
<meta property="og:url" content="" />
<meta property="og:type" content="website" />
<meta property="fb:admins" content="534232326" />
<script type="text/javascript" src="static/urly.js"></script>
<script src="" type="text/javascript"></script>
<body style="font-family: verdana, arial; font-size: 80%; text-align: center">
<div style="margin: 0 auto; width: 600px; padding: 20px; text-align: left;">
<span style="float: right">
<a href=""><img border="0" src="" /></a>
<a href="/"><img border="0" style="padding-top: 3px;" src="static/urly.gif" alt=" - dang short urls" /></a>
{% if error_404 or urly or error_href %}
<div style="margin-top: 5px; margin-bottom: 15px;">
{% if error_404 %}Oops - we couldn't find that urly.{% endif %}
{% if error_href %}Oops - that address doesn't look right... we can't create a dang short url from it.{% endif %}
{% if urly %}
{{ urly.href }} is now dang short, and <b>its already on your clipboard</b>.<br />
<input id="href" name="href" type="text" style="margin-top: 5px; padding: 3px; width: 600px; border: 1px solid #cccccc;" value="{{ urly.code }}" />
<script type="text/javascript" language="javascript">window.onload = copy("{{ urly.code }}");</script>
<script type="text/javascript" language="javascript">window.onload = focus("href");</script>
<div style="margin-top:15px">
Tweet about your
<div id="tbox"></div>
<script type="text/javascript">
twttr.anywhere(function (T) {
height: 65,
width: 600,
counter: false,
defaultContent: "{{ title }}{{ urly.code }}",
label: " "
<a href="{{ urly.code }}">Try your</a> or share on <a href="{{ title|urlencode }}{{ urly.code }}">Twitter</a> or <a href="{{ urly.code }}&t={{ title|urlencode }}">Facebook</a>
{% endif %}
{% endif %}
{% if not urly %}
<div style="padding-bottom: 3px;">Enter a long URL below and we'll make it dang short:</div>
<form action="new.html" method="get" accept-charset="utf-8">
<textarea style="margin-bottom: 5px; width: 100%; border: 1px solid #cccccc;" name="href" id="href" rows="4">{{ default_href }}</textarea>
<input type="submit" value="Create" />
{% endif %}
<div style="margin-top: 10px; padding-top: 5px; border-top: 1px solid #f1f1f1;"><span style="float: right"><a href="">Code</a> and <a href="">API</a></span>
Drag this link to your browser toolbar:&nbsp;
<a href="javascript:location.href=''+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)">!</a>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "' type='text/javascript'%3E%3C/script%3E"));
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-81531-8");
} catch(err) {}</script>