From 0ad3346d7459686d4bbc508db4c2e6081dd8185b Mon Sep 17 00:00:00 2001 From: Larissa Reis Date: Tue, 12 Aug 2014 10:48:28 -0300 Subject: [PATCH] profile-connections: changes css to connections block --- app/helpers/application_helper.rb | 10 +++++++--- app/views/shared/_profile_suggestions_list.html.erb | 27 +++++++++++---------------- plugins/people_block/public/style.css | 6 +----- public/designs/themes/base/style.css | 10 +++++++--- public/stylesheets/application.css | 71 +++++++++++++++++++++++++++++++++++++++++++++-------------------------- 5 files changed, 71 insertions(+), 53 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index dbe33a4..8a8f8d2 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1419,9 +1419,13 @@ module ApplicationHelper text_field_tag name, default, options.merge({:id => 'search-input', 'data-asset' => asset}) end - def profile_suggestion_categories(suggestion) - suggestion.categories.map do |cat| - content_tag(:p, content_tag(:span, "#{suggestion.category_label(cat[0])}: #{cat[1]}", :class => suggestion.category_icon(cat[0]))) + def profile_suggestion_profile_connections(suggestion) + suggestion.profile_connections.map do |cat| + end.join + end + + def profile_suggestion_tag_connections(suggestion) + suggestion.tag_connections.map do |cat| end.join end end diff --git a/app/views/shared/_profile_suggestions_list.html.erb b/app/views/shared/_profile_suggestions_list.html.erb index 5530c17..2338cbd 100644 --- a/app/views/shared/_profile_suggestions_list.html.erb +++ b/app/views/shared/_profile_suggestions_list.html.erb @@ -8,32 +8,27 @@