Skip to content

Commit

Permalink
improved built-in templates with documentation search
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 26, 2013
1 parent 50c2748 commit 24af3a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,6 +1,7 @@

4.51 2013-10-27
- Improved form_for performance.
- Improved built-in templates with documentation search.
- Fixed a few multipart form handling bugs.

4.50 2013-10-22
Expand Down
13 changes: 13 additions & 0 deletions lib/Mojolicious/templates/mojobar.html.ep
Expand Up @@ -38,6 +38,14 @@
transition: all 200ms ease-in-out;
}
#mojobar-links a:hover { color: #fff }
#mojobar-links input {
border: 0;
border-radius: 10px;
display: inline;
margin-left: 0.5em;
padding: 3px;
}
#mojobar-links form { display: inline }
% end
<div id="mojobar-logo">
%= link_to 'http://mojolicio.us' => begin
Expand All @@ -52,6 +60,11 @@
%= link_to MailingList => 'http://groups.google.com/group/mojolicious'
%= link_to Blog => 'http://blog.kraih.com'
%= link_to Twitter => 'http://twitter.com/kraih'
%= form_for 'http://google.com/cse' => (target => '_blank') => begin
%= hidden_field cx => '014527573091551588235:pwfplkjpgbi'
%= hidden_field ie => 'UTF-8'
%= search_field 'q', placeholder => 'Search'
%= end
</div>
</div>
%= javascript begin
Expand Down

0 comments on commit 24af3a5

Please sign in to comment.