Sort of works now
This commit is contained in:
parent
593f3e6d1c
commit
5972323cc1
15 changed files with 453 additions and 6 deletions
40
links/templates/index.html
Normal file
40
links/templates/index.html
Normal file
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="stylesheet" href="/static/style.css" />
|
||||
<title>minie links!</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="main-box">
|
||||
<form method="post" action="/">
|
||||
<ul>
|
||||
{{form.as_ul}}
|
||||
<li><input type="submit" value="shrink" name="shrink" id="main-submit" /></li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="logo-wrap">
|
||||
<div id="logo">
|
||||
<a href="/"><img src="/static/minie.png" alt="min.ie" /></a>
|
||||
</div>
|
||||
{% if short_url %}
|
||||
<form name="url">
|
||||
<label onclick=\"document.url.short_link.focus();document.url.short_link.select();\" for=\"short_link\">Your Link</label>
|
||||
<input name='short_link' value='{{short_url}}' id='short_link' readonly='true' size='25' onclick='javascript:this.focus();this.select();' />
|
||||
</form>
|
||||
{% endif %}
|
||||
<div id="info">Drag this bookmarklet <a onclick="return false" href="javascript:void(window.location%20=%20'http://min.ie/'+window.location)">min.ie</a> to your bookmark bar, or just stick "min.ie/" before any link you want to shrink.</div>
|
||||
<p>Django and Postgres Powered</p>
|
||||
</div>
|
||||
|
||||
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
_uacct = "UA-66209-5";
|
||||
urchinTracker();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue