-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhome.html
54 lines (53 loc) · 2.37 KB
/
home.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" />
<link href="css/default.css" rel="stylesheet" />
<link href="imgs/favicon.png" rel="shortcut icon" />
<meta name="robots" content="index, follow"/>
<meta name="keywords" content="url shortener,shortener,Valtech"/>
<meta name="description" content="The Valtech URL shortener"/>
<meta name="author" content="Valtech,Grégory PAUL"/>
<link rel="alternate" type="application/rss+xml" href="rss.xml"/>
<title>Valtech URL Shortener</title>
</head>
<body>
<header>
<h1><a href="/" title="Homepage"><img src="imgs/valtech.png" title="Valtech logo"></a></h1>
<h2>The Valtech URL Shortener</h2>
</header>
<section>
<form method="post" action="/add">
<fieldset>
<legend>Shorten an URL :</legend>
<div>
<input type="text" name="potdemiel" class="invisible" value="" />
<label for="url">URL : </label><input type="url" name="url" value="{% if error %}{{ url }}{% endif %}" required />
<button type="submit" name="submit">shorten</button>
{% if error %}<p class="error">{{ error }}</p>{% endif %}
<p class="notice">Warning, irrevelant or abusive content will be removed.</p>
</div>
</fieldset>
</form>
</section>
<section>
<h2>Last URLs shortened :</h2>
<div id="notification">Short URL is selected, press CTRL + C to copy it</div>
<ul>
{% for shortUrl in lasts %}
<li>
<a name="{{ shortUrl.shortname }}" class="shorturl">http://valte.ch/{{ shortUrl.shortname }}</a>
<input type="text" class="shorturl" value="http://valte.ch/{{ shortUrl.shortname }}" readonly /><img src="imgs/copy.png" class="clickToSelect" alt="click to select" />
↣ <a href="{{ shortUrl.url|striptags }}">{{ shortUrl.url|striptags }}</a><span class="hits">({{ shortUrl.hits }} hits)</span>
</li>
{% endfor %}
</ul>
</section>
<footer>
<a href="rss.xml" title="RSS feed for lasts urls shortened"><img src="imgs/feed.png" alt="RSS feed"></a> <a href="rss.xml" title="RSS feed for lasts urls shortened">RSS</a> |
Brought to you by <a href="http://www.valtech.com">Valtech</a> |
if you're a developper, you may grab the <a href="https://github.com/paulgreg/gae-python-urlshortener" title="Link to source code">source code</a></footer>
<script src="scripts/home.js"></script>
</body>
</html>