diff --git a/app/controllers/public/search_controller.rb b/app/controllers/public/search_controller.rb index e2fb414..73253d5 100644 --- a/app/controllers/public/search_controller.rb +++ b/app/controllers/public/search_controller.rb @@ -73,7 +73,7 @@ class SearchController < ApplicationController [ :recent_people, _('Recently registered people'), @finder.recent('people') ], [ :recent_communities, _('Recently created communities'), @finder.recent('communities') ], [ :recent_articles, _('Recent articles'), @finder.recent('articles') ], - [ :recent_comments, _('Recent comments'), @finder.recent('comments') ], + [ :comments, _('Recent comments'), @finder.recent('comments') ], [ :most_commented_articles, _('Most commented articles'), @finder.most_commented_articles ] ].each do |key, name, list| @results[key] = list diff --git a/public/designs/themes/default/stylesheets/controller_search.css b/public/designs/themes/default/stylesheets/controller_search.css index 8b9ec8b..cb9c2fb 100644 --- a/public/designs/themes/default/stylesheets/controller_search.css +++ b/public/designs/themes/default/stylesheets/controller_search.css @@ -123,8 +123,8 @@ body.category4 .search-results-type-profile.common-profile-list-block li a { /* * * Category Page * * * * * * * * * * * * */ -#view-category h2 { - font-size: 16px; +#view-category h3 { + font-size: 14px; line-height: 20px; margin: 0px; padding: 20px 0px 0px 20px; diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 92eada4..6d6b37b 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -47,11 +47,12 @@ function resizePrincipalTemplateBox() { var otherBoxSum = 10; var i = 2; var b = $$( "div.box-" + i++ )[0]; - while ( b.nodeName ) { + while ( b && b.nodeName ) { otherBoxSum += b.clientWidth; b = $$( "div.box-" + i++ )[0] || false; } - box1.style.width = ( $("boxes").clientWidth - otherBoxSum ) +"px" + if ( box1 ) + box1.style.width = ( $("boxes").clientWidth - otherBoxSum ) +"px" } if ( window.addEventListener ) { -- libgit2 0.21.2