Commit 73823927ee80685bbe1bb5a351349758bceb2c1a
1 parent
83b3471a
Exists in
master
and in
29 other branches
ActionItem561: fix title of communities list
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2311 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
3 changed files
with
19 additions
and
1 deletions
Show diff stats
app/views/search/communities.rhtml
... | ... | @@ -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 < 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 | ... | ... |