From 4ba9a26c2bb3500a58ef0c07b117b6c6c7a0b823 Mon Sep 17 00:00:00 2001 From: Shai Mor Date: Wed, 1 Oct 2014 18:07:05 -0400 Subject: [PATCH] style sidebar search mapper stats --- app/assets/stylesheets/clean.css | 24 ++++++++++++++++++++++++ app/helpers/users_helper.rb | 1 + app/views/layouts/_templates.html.erb | 4 ++-- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/clean.css b/app/assets/stylesheets/clean.css index a586d6ba..efd53e70 100644 --- a/app/assets/stylesheets/clean.css +++ b/app/assets/stylesheets/clean.css @@ -346,6 +346,10 @@ .sidebarSearch .tt-dataset-mappers .tt-suggestion .icon { margin: 4px 9px 4px 4px; } +.sidebarSearch .tt-dataset-mappers .resultText { + width: 150px; +} + .sidebarSearch .resultText { width: 260px; display: table-cell; @@ -381,6 +385,9 @@ .tt-dataset-maps div.autoOptions { width: 84px; } +.sidebarSearch .tt-dataset-mappers .autoOptions { + width: 235px; +} .sidebarSearch .tt-is-under-cursor .autoOptions, .sidebarSearch .tt-is-under-mouse-cursor .autoOptions { display: block; @@ -514,7 +521,24 @@ .sidebarSearch .tt-dataset-mappers div.mapCount { top: 8px; + left: 170px; } +.sidebarSearch .tt-dataset-mappers div.mapperCreated { + left: 0px; + padding-left: 0px; + font-size: 12px; + font-family: 'din-medium', helvetica, sans-serif; + line-height: 24px; +} +.sidebarSearch .tt-dataset-mappers div.mapperGeneration { + top: 20px; + left: 0px; + padding-left: 0px; + font-size: 12px; + font-family: 'din-medium', helvetica, sans-serif; + line-height: 24px; +} + /* end search */ /* end upperLeftUI */ diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index bfd80de2..27d6f8e7 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -10,6 +10,7 @@ module UsersHelper user['value'] = u.name user['profile'] = u.image.url(:thumb) user['mapCount'] = u.maps.count + user['created_at'] = u.created_at.strftime("%m/%d/%Y") user['rtype'] = "mapper" temp.push user diff --git a/app/views/layouts/_templates.html.erb b/app/views/layouts/_templates.html.erb index c5bf7fd5..fd02f3e9 100644 --- a/app/views/layouts/_templates.html.erb +++ b/app/views/layouts/_templates.html.erb @@ -137,10 +137,10 @@
- Mapping since: {{created_at}} +

Mapping since: {{created_at}}

- Generation {{generation}} +

Generation: 1

{{mapCount}}