centered the avatar, moved link
parent
4555f7c0d6
commit
d3e9c29e16
|
@ -13,12 +13,10 @@ handle remainder => sub {
|
||||||
my $link = 'http://unicornify.appspot.com/';
|
my $link = 'http://unicornify.appspot.com/';
|
||||||
if (Email::Valid->address($_)) {
|
if (Email::Valid->address($_)) {
|
||||||
s/[\s\t]+//g; # strip whitespace from the remainder, we just need the email address.
|
s/[\s\t]+//g; # strip whitespace from the remainder, we just need the email address.
|
||||||
|
|
||||||
return $_ . '\'s unicorn:',
|
return $_ . '\'s unicorn:',
|
||||||
html => $_.'\'s unicorn:'
|
html => $_ . '\'s unicorn <a href="'.$link.'">(Learn more at unicornify.appspot.com)</a>:'
|
||||||
.'<br /><a href="' . unicornify_url(email => $_, size => 128) .'">'
|
.'<br /><a href="' . unicornify_url(email => $_, size => 128) .'">'
|
||||||
.'<img src="'.unicornify_url(email => $_, size => "100").'" /></a>'
|
.'<img src="'.unicornify_url(email => $_, size => "100").'" style="margin: auto;" /></a>';
|
||||||
.'<br /><a href="'.$link.'">Learn more at unicornify.appspot.com</a>';
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
|
@ -15,10 +15,8 @@ ddg_goodie_test(
|
||||||
)],
|
)],
|
||||||
'unicornify bob@bob.com' =>
|
'unicornify bob@bob.com' =>
|
||||||
test_zci('bob@bob.com\'s unicorn:',
|
test_zci('bob@bob.com\'s unicorn:',
|
||||||
html => 'bob@bob.com\'s unicorn:'.'<br /><a href="'
|
html => 'bob@bob.com\'s unicorn <a href="http://unicornify.appspot.com/">(Learn more at unicornify.appspot.com)</a>:<br />'
|
||||||
.unicornify_url(email => 'bob@bob.com', size => 128)
|
.'<a href="'.unicornify_url(email => 'bob@bob.com', size => 128).'">'
|
||||||
.'"><img src="'
|
.'<img src="'.unicornify_url(email=>'bob@bob.com', size => 100).'" style="margin: auto;" /></a>'));
|
||||||
.unicornify_url(email=>'bob@bob.com', size => 100)
|
|
||||||
.'" /></a><br /><a href="http://unicornify.appspot.com/">Learn more at unicornify.appspot.com</a>'));
|
|
||||||
|
|
||||||
done_testing;
|
done_testing;
|
||||||
|
|
Loading…
Reference in New Issue