From aa4932a6e9ddcb6693e14a85b864441b0ef86143 Mon Sep 17 00:00:00 2001 From: Dan Stowell Date: Sun, 1 Dec 2013 18:12:12 +0000 Subject: [PATCH] Move changeset comment to just after changeset info, & style as if a quote --- app/assets/stylesheets/common.css.scss | 4 ++++ app/views/browse/_common_details.html.erb | 16 ++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index ceed9b2df9..caae69c5e4 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -1023,6 +1023,10 @@ header .search_form { padding: $lineheight/2 $lineheight; border-bottom: 1px solid #ddd; + .changesetcomment { + font-style: italic; + } + h4:first-child { margin-top: 0; } diff --git a/app/views/browse/_common_details.html.erb b/app/views/browse/_common_details.html.erb index ede9e14c5b..e1b87a6a21 100644 --- a/app/views/browse/_common_details.html.erb +++ b/app/views/browse/_common_details.html.erb @@ -1,11 +1,3 @@ -

- <% if common_details.changeset.tags['comment'].present? %> - <%= linkify(h(common_details.changeset.tags['comment'])) %> - <% else %> - <%= t 'browse.no_comment' %> - <% end %> -

-
<%= t "browse.#{common_details.visible? ? :edited : :deleted}_by_html", @@ -23,6 +15,14 @@ #<%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %>
+
+ <% if common_details.changeset.tags['comment'].present? %> + "<%= linkify(h(common_details.changeset.tags['comment'])) %>" + <% else %> + <%= t 'browse.no_comment' %> + <% end %> +
+ <% if @type == "node" %>
Location: