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 {
|
.title {
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
.title > a {
|
||||||
|
color: black;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.title > a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
.url_data {
|
.url_data {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,6 +61,7 @@ sub normalize_source_url($source_url) {
|
||||||
|
|
||||||
sub write_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;
|
my $shorten_path;
|
||||||
eval {
|
eval {
|
||||||
my $short_row = one_row('urls',{ source_url => $source_url});
|
my $short_row = one_row('urls',{ source_url => $source_url});
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<body>
|
<body>
|
||||||
<div class=content>
|
<div class=content>
|
||||||
<div class=title>
|
<div class=title>
|
||||||
URL Shortener
|
<a href="/">URL Shortener</a>
|
||||||
</div>
|
</div>
|
||||||
<div class=shorten_form>
|
<div class=shorten_form>
|
||||||
<form method=post>
|
<form method=post>
|
||||||
|
|
Loading…
Reference in a new issue