From 8bd71151e40956ef55f4aa37472620cf76fa96fc Mon Sep 17 00:00:00 2001 From: Denis Fedoseev Date: Wed, 13 Feb 2019 15:31:52 +0300 Subject: [PATCH] link to / from title --- public/css/main.css | 7 +++++++ shrlbe.pl | 1 + templates/index.html.ep | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/public/css/main.css b/public/css/main.css index 1aa525d..3261e2b 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -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; } diff --git a/shrlbe.pl b/shrlbe.pl index ff5141d..c5e2ca6 100644 --- a/shrlbe.pl +++ b/shrlbe.pl @@ -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}); diff --git a/templates/index.html.ep b/templates/index.html.ep index fe520ea..d945904 100644 --- a/templates/index.html.ep +++ b/templates/index.html.ep @@ -7,7 +7,7 @@
- URL Shortener + URL Shortener