diff --git a/app/views/search/communities.rhtml b/app/views/search/communities.rhtml deleted file mode 120000 index aba8524..0000000 --- a/app/views/search/communities.rhtml +++ /dev/null @@ -1 +0,0 @@ -people.rhtml \ No newline at end of file diff --git a/app/views/search/communities.rhtml b/app/views/search/communities.rhtml new file mode 100644 index 0000000..52817b2 --- /dev/null +++ b/app/views/search/communities.rhtml @@ -0,0 +1,14 @@ +<%= search_page_title( __('Communities'), { :query => @query, + :category => @category ? @category.name : nil, + :total_results => @total_results, + :region => @region ? @region.name : nil, + :distance => @radius } ) %> + +<%= render :partial => 'search_form', :locals => { :form_title => @query.blank? ? _('Search') : _("Refine your search"), :simple_search => true } %> + +<%# FIXME ARMENGUE %> +<%= display_results(false) %> + +<%= pagination_links @results.values.first %> + +
diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb index e3e53c2..a7544d6 100644 --- a/test/functional/search_controller_test.rb +++ b/test/functional/search_controller_test.rb @@ -938,6 +938,11 @@ class SearchControllerTest < Test::Unit::TestCase assert_tag :tag => 'div', :attributes => {:class => /search-results-most_commented_articles/} , :descendant => {:tag => 'a', :attributes => { :href => '/search/index/my-category?asset=articles'}} end + should 'display correct title on list communities' do + get :assets, :asset => 'communities' + assert_tag :tag => 'h1', :content => 'Communities' + end + ################################################################## ################################################################## -- libgit2 0.21.2