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