link to / from title
This commit is contained in:
parent
0be901efd8
commit
8bd71151e4
3 changed files with 9 additions and 1 deletions
|
@ -8,6 +8,13 @@
|
|||
.title {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.title > a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
.title > a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.url_data {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
|
|
@ -61,6 +61,7 @@ sub normalize_source_url($source_url) {
|
|||
|
||||
sub write_url($source_url) {
|
||||
|
||||
#TODO: it's really stupid idea to create short url from random + db writing. Need better.
|
||||
my $shorten_path;
|
||||
eval {
|
||||
my $short_row = one_row('urls',{ source_url => $source_url});
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<body>
|
||||
<div class=content>
|
||||
<div class=title>
|
||||
URL Shortener
|
||||
<a href="/">URL Shortener</a>
|
||||
</div>
|
||||
<div class=shorten_form>
|
||||
<form method=post>
|
||||
|
|
Loading…
Reference in a new issue