From 1769971cde94eb07854f3b9c1a830c885ca858a3 Mon Sep 17 00:00:00 2001 From: Aaron Lidman Date: Wed, 13 Nov 2013 12:23:58 -0800 Subject: [PATCH] Moved note description out of the sidebar header Some indentation too. --- app/assets/stylesheets/common.css.scss | 8 ++++++++ app/views/browse/note.html.erb | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 9f6be1979..d96a04eae 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -1088,6 +1088,14 @@ header .search_form { .note-comments li { margin: $lineheight/2 0; + + p { + margin-left: 10px; + } + } + + .note-description p { + margin-left: 10px; } } diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index a377ada6a..d35ac8419 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -2,12 +2,16 @@

- <%= h(@note.comments.first.body.to_html) %> + <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>

+

<%= t('browse.note.mine.description') %>

+
+ <%= h(@note.comments.first.body.to_html) %> +
+
- <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>
<%= note_event('open', @note.created_at, @note.author) %> <% if @note.status == "closed" %> -- 2.43.2