diff --git a/plugins/elasticsearch/controllers/elasticsearch_plugin_controller.rb b/plugins/elasticsearch/controllers/elasticsearch_plugin_controller.rb index b4d69dc..904745a 100644 --- a/plugins/elasticsearch/controllers/elasticsearch_plugin_controller.rb +++ b/plugins/elasticsearch/controllers/elasticsearch_plugin_controller.rb @@ -26,8 +26,8 @@ class ElasticsearchPluginController < ApplicationController @results = [] # results 'article' -# results 'people' - results "community" + results 'people' + # results "community" end def selected_type params diff --git a/plugins/elasticsearch/public/style.css b/plugins/elasticsearch/public/style.css index 8a702ff..9074da3 100644 --- a/plugins/elasticsearch/public/style.css +++ b/plugins/elasticsearch/public/style.css @@ -38,6 +38,7 @@ color: black; } +.controller-elasticsearch_plugin .search-item .right-side .model-label, .controller-elasticsearch_plugin .community-header .model-label { background: #ddd; color: black; @@ -48,4 +49,14 @@ .controller-elasticsearch_plugin .search-item { margin-bottom: 25px; margin-top: 25px; + display: flex; +} + +.controller-elasticsearch_plugin .right-side { + flex: 2; +} + +.controller-elasticsearch_plugin .left-side { + margin-left: 25px; + width: 100px; } diff --git a/plugins/elasticsearch/views/elasticsearch_plugin/_person_display.html.erb b/plugins/elasticsearch/views/elasticsearch_plugin/_person_display.html.erb index 2d46c66..1c15e05 100644 --- a/plugins/elasticsearch/views/elasticsearch_plugin/_person_display.html.erb +++ b/plugins/elasticsearch/views/elasticsearch_plugin/_person_display.html.erb @@ -1,11 +1,11 @@ -
- <%= person.created_at %> <%= person.class %> -
- - Name: <%= person.name %> - - +<%= person.description %>
+