From f3225d397c7d33f9b6dd218a4ada202f8d5953a4 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Fri, 18 Jan 2008 18:28:08 +0000 Subject: [PATCH] ActionItem152: enhancing search templates --- app/views/search/_article.rhtml | 2 +- app/views/search/_product.rhtml | 2 +- app/views/search/_profile.rhtml | 2 +- app/views/search/popup.rhtml | 13 +++++++------ 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app/views/search/_article.rhtml b/app/views/search/_article.rhtml index ec02f90..7dac088 100644 --- a/app/views/search/_article.rhtml +++ b/app/views/search/_article.rhtml @@ -1,5 +1,5 @@
- <%= icon('cms') %> + <%= icon('cms', :style => 'float: left') %>
diff --git a/app/views/search/_product.rhtml b/app/views/search/_product.rhtml index 5ce417e..63b63bd 100644 --- a/app/views/search/_product.rhtml +++ b/app/views/search/_product.rhtml @@ -2,7 +2,7 @@ <%# FIXME add more information %>
- <%= icon('product') %> + <%= icon('product', :style => 'float: left') %>
<%= image_tag(hit.image.public_filename(:minor), :style => 'float:right;') if hit.image %> diff --git a/app/views/search/_profile.rhtml b/app/views/search/_profile.rhtml index fa0c2da..9c241b9 100644 --- a/app/views/search/_profile.rhtml +++ b/app/views/search/_profile.rhtml @@ -2,7 +2,7 @@ <%# FIXME add more information %>
- <%= icon('person') %> + <%= icon('person', :style => 'float: left') %>
<%= link_to_homepage(hit.name, hit.identifier) %> diff --git a/app/views/search/popup.rhtml b/app/views/search/popup.rhtml index 30ab9e3..7388c23 100644 --- a/app/views/search/popup.rhtml +++ b/app/views/search/popup.rhtml @@ -1,18 +1,19 @@

<%= _('Search %s') % @environment.name %>

<% form_tag(:action => 'index') do%> -
- <%= text_field_tag('query', '', :style => 'width: 70%;') %> - <%= submit_tag(_('Search')) %> + +
+ <%= text_field_tag('query', '', :size => 50) %> + <%= submit_button(:search, _('Search')) %>

<%= _('Search options') %>

-
- <%= submit_tag(_('Search')) %> + <% button_bar do %> + <%= submit_button(:search, _('Search')) %> <%= lightbox_close_button(_('Close')) %> -
+ <% end %> <% end %> -- libgit2 0.21.2