From c3cb1de73eb8b748e7cb20b3f842295a0a117919 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 2 Dec 2012 16:46:33 +0000 Subject: [PATCH] Format note comments correctly in the data browser --- app/assets/stylesheets/common.css.scss | 25 +++++++++++++++---------- app/views/browse/note.html.erb | 3 +-- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 4c7012f2c..53fa9ccf3 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -835,19 +835,24 @@ table.browse_details th { td.browse_comments { padding: 0px; -} -td.browse_comments table { - border-collapse: collapse; -} + table { + border-collapse: collapse; -td.browse_comments table td { - padding-bottom: 10px; -} + td { + padding-bottom: 10px; -td.browse_comments table td span.by { - font-size: small; - color: #999999; + p { + margin-top: 0px; + margin-bottom: 0px; + } + + span.by { + font-size: small; + color: #999999; + } + } + } } #browse_map { diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index 4137c33c1..12de1114f 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -44,8 +44,7 @@ <% @note.comments[1..-1].each do |comment| %> - <%= h(comment.body) %> -
+ <%= comment.body.to_html %> <%= t "browse.note.at_by_html", :when => friendly_date(comment.created_at), :user => note_author(comment) %> -- 2.43.2