Commit f3225d397c7d33f9b6dd218a4ada202f8d5953a4

Authored by AntonioTerceiro
1 parent fa9507d6

ActionItem152: enhancing search templates


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1215 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/search/_article.rhtml
1 <div> 1 <div>
2 - <%= icon('cms') %> 2 + <%= icon('cms', :style => 'float: left') %>
3 <div class='search-result-text'> 3 <div class='search-result-text'>
4 <div> 4 <div>
5 <strong> 5 <strong>
app/views/search/_product.rhtml
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <%# FIXME add more information %> 2 <%# FIXME add more information %>
3 3
4 <div> 4 <div>
5 - <%= icon('product') %> 5 + <%= icon('product', :style => 'float: left') %>
6 <div class='search-result-text'> 6 <div class='search-result-text'>
7 <%= image_tag(hit.image.public_filename(:minor), :style => 'float:right;') if hit.image %> 7 <%= image_tag(hit.image.public_filename(:minor), :style => 'float:right;') if hit.image %>
8 <strong> 8 <strong>
app/views/search/_profile.rhtml
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <%# FIXME add more information %> 2 <%# FIXME add more information %>
3 3
4 <div> 4 <div>
5 - <%= icon('person') %> 5 + <%= icon('person', :style => 'float: left') %>
6 <div class='search-result-text'> 6 <div class='search-result-text'>
7 <strong> 7 <strong>
8 <%= link_to_homepage(hit.name, hit.identifier) %> 8 <%= link_to_homepage(hit.name, hit.identifier) %>
app/views/search/popup.rhtml
1 <h2><%= _('Search %s') % @environment.name %></h2> 1 <h2><%= _('Search %s') % @environment.name %></h2>
2 2
3 <% form_tag(:action => 'index') do%> 3 <% form_tag(:action => 'index') do%>
4 - <div id='search-' style='text-align: center;'>  
5 - <%= text_field_tag('query', '', :style => 'width: 70%;') %>  
6 - <%= submit_tag(_('Search')) %> 4 +
  5 + <div id='search-field' style='text-align: center;'>
  6 + <%= text_field_tag('query', '', :size => 50) %>
  7 + <%= submit_button(:search, _('Search')) %>
7 </div> 8 </div>
8 9
9 <h3><%= _('Search options') %></h3> 10 <h3><%= _('Search options') %></h3>
10 11
11 12
12 - <div>  
13 - <%= submit_tag(_('Search')) %> 13 + <% button_bar do %>
  14 + <%= submit_button(:search, _('Search')) %>
14 <%= lightbox_close_button(_('Close')) %> 15 <%= lightbox_close_button(_('Close')) %>
15 - </div> 16 + <% end %>
16 17
17 <% end %> 18 <% end %>
18 19