diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 241cd15..1bd6c0e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -730,10 +730,10 @@ module ApplicationHelper def search_page_title(title, options={}) title = "

" + title + "

" - title += "

" + _("Searched for '%s'") % options[:query] + "

" if !options[:query].blank? - title += "

" + _("In category %s") % options[:category] + "

" if !options[:category].blank? - title += "

" + _("within %d km from %s") % [options[:distance], options[:region]] + "

" if !options[:distance].blank? && !options[:region].blank? - title += "

" + _("%d results found") % options[:total_results] + "

" if !options[:total_results].blank? + title += "

" + _("Searched for '%s'") % options[:query] + "

" if !options[:query].blank? + title += "

" + _("In category %s") % options[:category] + "

" if !options[:category].blank? + title += "

" + _("within %d km from %s") % [options[:distance], options[:region]] + "

" if !options[:distance].blank? && !options[:region].blank? + title += "

" + _("%d results found") % options[:total_results] + "

" if !options[:total_results].blank? title end diff --git a/app/helpers/profile_editor_helper.rb b/app/helpers/profile_editor_helper.rb index b6623a8..f2f4d5a 100644 --- a/app/helpers/profile_editor_helper.rb +++ b/app/helpers/profile_editor_helper.rb @@ -135,8 +135,9 @@ module ProfileEditorHelper def control_panel(&block) concat( - content_tag('div', - content_tag('div', capture(&block) + '
 '), + content_tag( + 'div', + capture(&block) + '
 ', :class => 'control-panel'), block.binding) end diff --git a/app/views/friends/index.rhtml b/app/views/friends/index.rhtml index c873ad6..2887f1d 100644 --- a/app/views/friends/index.rhtml +++ b/app/views/friends/index.rhtml @@ -28,14 +28,12 @@ :class => 'button icon-delete', :title => _('remove'), :help => __('Clicking on this button will remove your friend relation with %s.') % friend.name %> - -
<%= link_to content_tag('span',_('contact')), friend.url.merge(:controller => 'contact', :action => 'new'), :class => 'button icon-menu-mail', :title => _('contact'), :help => __('Clicking on this button will let you send a message to %s.') % friend.name %> -
+ <% end %> diff --git a/app/views/memberships/index.rhtml b/app/views/memberships/index.rhtml index 6b1144d..3fba821 100644 --- a/app/views/memberships/index.rhtml +++ b/app/views/memberships/index.rhtml @@ -26,6 +26,7 @@ ].compact.join(', ') %> +
<% end %> diff --git a/app/views/profile/enterprises.rhtml b/app/views/profile/enterprises.rhtml index 0dcb7dd..7ba7e1f 100644 --- a/app/views/profile/enterprises.rhtml +++ b/app/views/profile/enterprises.rhtml @@ -5,7 +5,7 @@ diff --git a/app/views/profile/friends.rhtml b/app/views/profile/friends.rhtml index 9d4719b..a515ea2 100644 --- a/app/views/profile/friends.rhtml +++ b/app/views/profile/friends.rhtml @@ -6,7 +6,7 @@ <% cache do%> <% end %> diff --git a/app/views/profile/members.rhtml b/app/views/profile/members.rhtml index 381f2ec..c884c04 100644 --- a/app/views/profile/members.rhtml +++ b/app/views/profile/members.rhtml @@ -5,7 +5,7 @@ diff --git a/app/views/profile_editor/index.rhtml b/app/views/profile_editor/index.rhtml index 4fa1856..569322e 100644 --- a/app/views/profile_editor/index.rhtml +++ b/app/views/profile_editor/index.rhtml @@ -8,8 +8,6 @@ <%= render :partial => 'pending_tasks' %> -
- <% control_panel do %> <%= control_panel_button(_('Profile Info and settings'), 'edit-profile', :controller => 'profile_editor', :action => 'edit') if profile.person? %> @@ -65,6 +63,5 @@ <% end %> -
diff --git a/app/views/search/index.rhtml b/app/views/search/index.rhtml index 3e7a68e..38b16bd 100644 --- a/app/views/search/index.rhtml +++ b/app/views/search/index.rhtml @@ -1,6 +1,6 @@
-<%= search_page_title('', :query => @query, :category => @category ? @category.name : nil, :total_results => @total_results) %> +<%= search_page_title(_('Search Results'), :query => @query, :category => @category ? @category.name : nil, :total_results => @total_results) %> <%= render :partial => 'search_form', :locals => { :form_title => _("Refine your search"), :simple_search => true } %> diff --git a/public/stylesheets/controller_memberships.css b/public/stylesheets/controller_memberships.css index 04295c8..0ea0690 100644 --- a/public/stylesheets/controller_memberships.css +++ b/public/stylesheets/controller_memberships.css @@ -11,9 +11,6 @@ display: block; list-style: none; margin-bottom: 20px -} - -#memberships-index li { background-color: #B8CFE7; } @@ -21,6 +18,9 @@ float: right; padding: 4% 20px 4% 0px; } +#memberships-index li .may-clear { + clear: right; +} #memberships-index li .profile-details { display: block; diff --git a/public/stylesheets/manage_contacts_list.css b/public/stylesheets/manage_contacts_list.css index cbd695c..58b7411 100644 --- a/public/stylesheets/manage_contacts_list.css +++ b/public/stylesheets/manage_contacts_list.css @@ -6,13 +6,14 @@ .profile-list li { float: left; - width: 100px; - height: 100px; + width: 90px; + height: 90px; + max-width: 80px; + max-height: 80px; margin: 5px; padding: 5px; border: 2px solid #B8CFE7; list-style: none; - overflow: hidden; position: relative; } .profile-list li:hover { @@ -34,7 +35,7 @@ } .profile-list .profile_link span { - width: 200px; + width: 80px; display: block; overflow: hidden; } @@ -44,11 +45,14 @@ } .profile-list .controll { position: absolute; - top: 5px; - right: 0px; + top: 7px; + right: -10px; } -.msie6 .profile-list .controll a { +.profile-list .controll a { display: block; + margin-bottom: 2px; +} +.msie6 .profile-list .controll a { width: 0px; } -- libgit2 0.21.2