Commit 73823927ee80685bbe1bb5a351349758bceb2c1a

Authored by JoenioCosta
1 parent 83b3471a

ActionItem561: fix title of communities list

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2311 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/search/communities.rhtml
... ... @@ -1 +0,0 @@
1   -people.rhtml
2 0 \ No newline at end of file
app/views/search/communities.rhtml 0 → 100644
... ... @@ -0,0 +1,14 @@
  1 +<%= search_page_title( __('Communities'), { :query => @query,
  2 + :category => @category ? @category.name : nil,
  3 + :total_results => @total_results,
  4 + :region => @region ? @region.name : nil,
  5 + :distance => @radius } ) %>
  6 +
  7 +<%= render :partial => 'search_form', :locals => { :form_title => @query.blank? ? _('Search') : _("Refine your search"), :simple_search => true } %>
  8 +
  9 +<%# FIXME ARMENGUE %>
  10 +<%= display_results(false) %>
  11 +
  12 +<%= pagination_links @results.values.first %>
  13 +
  14 +<br style="clear:both" />
... ...
test/functional/search_controller_test.rb
... ... @@ -938,6 +938,11 @@ class SearchControllerTest &lt; Test::Unit::TestCase
938 938 assert_tag :tag => 'div', :attributes => {:class => /search-results-most_commented_articles/} , :descendant => {:tag => 'a', :attributes => { :href => '/search/index/my-category?asset=articles'}}
939 939 end
940 940  
  941 + should 'display correct title on list communities' do
  942 + get :assets, :asset => 'communities'
  943 + assert_tag :tag => 'h1', :content => 'Communities'
  944 + end
  945 +
941 946 ##################################################################
942 947 ##################################################################
943 948  
... ...