Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
improve built-in templates with high resolution logos
  • Loading branch information
kraih committed Nov 12, 2017
1 parent de9ee91 commit 61dae0f
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,5 +1,6 @@

7.56 2017-11-07
7.56 2017-11-12
- Improved built-in templates with high resolution logos.

7.55 2017-11-06
- Added -role flag to Mojo::Base. (jberger)
Expand Down
Binary file modified lib/Mojolicious/resources/public/mojo/logo-black.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lib/Mojolicious/resources/public/mojo/logo-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion lib/Mojolicious/resources/templates/mojo/debug.html.ep
Expand Up @@ -324,7 +324,11 @@
</div>
<div id="footer">
%= link_to 'http://mojolicious.org' => begin
%= image '/mojo/logo-black.png', alt => 'Mojolicious logo'
<picture>
<img src="<%= url_for '/mojo/logo-black.png' %>"
srcset="<%= url_for '/mojo/logo-black@2x.png' %> 2x"
alt="Mojolicious logo">
</picture>
% end
</div>
</body>
Expand Down
5 changes: 4 additions & 1 deletion lib/Mojolicious/resources/templates/mojo/menubar.html.ep
Expand Up @@ -60,7 +60,10 @@
<div id="mojobar-content">
<div id="mojobar-logo">
%= link_to 'http://mojolicious.org' => begin
%= image '/mojo/logo-white.png', alt => 'Mojolicious logo'
<picture>
<img src="<%= url_for '/mojo/logo-white.png' %>"
srcset="<%= url_for '/mojo/logo-white@2x.png' %> 2x">
</picture>
% end
</div>
<div id="mojobar-links">
Expand Down
6 changes: 5 additions & 1 deletion lib/Mojolicious/resources/templates/mojo/perldoc.html.ep
Expand Up @@ -133,7 +133,11 @@
</div>
<div id="footer">
%= link_to 'http://mojolicious.org' => begin
%= image '/mojo/logo-black.png', alt => 'Mojolicious logo'
<picture>
<img src="<%= url_for '/mojo/logo-black.png' %>"
srcset="<%= url_for '/mojo/logo-black@2x.png' %> 2x"
alt="Mojolicious logo">
</picture>
% end
</div>
</body>
Expand Down
4 changes: 4 additions & 0 deletions t/mojolicious/exception_lite_app.t
Expand Up @@ -256,8 +256,12 @@ $t->get_ok('/mojo/failraptor.png')->status_is(200)
->content_type_is('image/png');
$t->get_ok('/mojo/logo-black.png')->status_is(200)
->content_type_is('image/png');
$t->get_ok('/mojo/logo-black@2x.png')->status_is(200)
->content_type_is('image/png');
$t->get_ok('/mojo/logo-white.png')->status_is(200)
->content_type_is('image/png');
$t->get_ok('/mojo/logo-white@2x.png')->status_is(200)
->content_type_is('image/png');
$t->get_ok('/mojo/noraptor.png')->status_is(200)->content_type_is('image/png');
$t->get_ok('/mojo/notfound.png')->status_is(200)->content_type_is('image/png');
$t->get_ok('/mojo/pinstripe-dark.png')->status_is(200)
Expand Down

0 comments on commit 61dae0f

Please sign in to comment.