1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2025-07-17 01:42:34 +02:00

Use textual link, and not image

This commit is contained in:
Hubert depesz Lubaczewski
2019-12-03 21:48:30 +01:00
parent f4fb153c41
commit f833e75ab5
3 changed files with 9 additions and 2 deletions

View File

@ -21,4 +21,6 @@ footer p,
footer a {color:#cccccc}
footer a:hover {color:#888}
#main-site-link { border: 1px solid red; position:absolute; background: #eee; padding: 4px; opacity: 0.5; -moz-border-radius:19px/19px; border-radius:19px/19px; top: 5px; right: 5px; }
#main-site-link { border: 2px solid #06c; position:absolute; background: #eee; padding: 4px 10px; -moz-border-radius:19px/19px; border-radius:19px/19px; top: 5px; right: 5px; }
#main-site-link a { color: #06c; }
#main-site-link strong { font-weight:bold; }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -345,7 +345,12 @@
% end;
<div id="main-site-link"><a href="<%= url_for( 'show', id => $id ) =%>" title="Go to main explain.depesz.com site" target=_new><img src="<%= url_for '/' %>img/home.png" width=32 height=32 alt="go to explain.depesz.com"></a></div>
% my $full_hostname = $self->config->{'title'} // $self->req->url->to_abs->host;
% my @hostname_parts = split( /\./, $full_hostname, 2 );
<div id="main-site-link"><a href="<%= url_for( 'show', id => $id ) =%>" title="Go to main explain.depesz.com site" target=_new>
<strong><%= $hostname_parts[0] %></strong>.<%= $hostname_parts[1] %>
</a></div>
<div class="result">