Commit 3c170303fcafeeb044c943f130366f894aa986d1
1 parent
380db799
Exists in
master
and in
29 other branches
ActionItem313: comments on bug topic
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1714 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
14 additions
and
0 deletions
Show diff stats
app/views/search/_display_results.rhtml
1 | <div id="search-results" class="<%= 'only-one-result-box' if @results.size == 1 %>"> | 1 | <div id="search-results" class="<%= 'only-one-result-box' if @results.size == 1 %>"> |
2 | + | ||
3 | +<% if @category %> | ||
4 | +<div id="search-whole-site"> | ||
5 | +<%= link_to _('Search for "%s" in the whole site') % @query, | ||
6 | + :controller => 'search', :action => 'index', :category_path => [], :query => @query %> | ||
7 | +</div> | ||
8 | +<% end %> | ||
9 | + | ||
2 | <% | 10 | <% |
3 | pos2 = :odd # allow to format in a two colons layout | 11 | pos2 = :odd # allow to format in a two colons layout |
4 | pos3 = 3 # allow to format in a thre colons layout | 12 | pos3 = 3 # allow to format in a thre colons layout |
@@ -33,6 +41,7 @@ | @@ -33,6 +41,7 @@ | ||
33 | </div><!-- end class="search-results-<%= name %>" --> | 41 | </div><!-- end class="search-results-<%= name %>" --> |
34 | <% end %> | 42 | <% end %> |
35 | <% end %> | 43 | <% end %> |
44 | + | ||
36 | <br style="clear:both" /> | 45 | <br style="clear:both" /> |
37 | </div><!-- end id="search-results" --> | 46 | </div><!-- end id="search-results" --> |
38 | 47 |
public/stylesheets/controller_search.css
@@ -2,6 +2,11 @@ | @@ -2,6 +2,11 @@ | ||
2 | /* none by default, but... Who knows the future? :-) */ | 2 | /* none by default, but... Who knows the future? :-) */ |
3 | } | 3 | } |
4 | 4 | ||
5 | +#search-whole-site { | ||
6 | + text-align: right; | ||
7 | + margin-top: -15px; | ||
8 | +} | ||
9 | + | ||
5 | #search-results h3 { | 10 | #search-results h3 { |
6 | margin: 20px 0px 0px 20px; | 11 | margin: 20px 0px 0px 20px; |
7 | } | 12 | } |