diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 281cd4ba5..411e6167b 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -83,13 +83,6 @@ a { /* Utility for de-emphasizing content */ -.deemphasize { - color: $darkgrey; - a { - color: $blue; - } -} - .text-muted a { color: $blue; } @@ -1253,11 +1246,6 @@ tr.turn:hover { img.user_thumbnail { float: left; } - - small.deemphasize { - float: left; - display: block; - } } /* Rules for the diary entry page */ @@ -1707,13 +1695,8 @@ div.secondary-actions { } } -.diary_post .richtext { - margin-top: $lineheight; - } - .comments .richtext { margin-left: 70px; - margin-top: 0; } /* Rules for the user notes list */ diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index c8473adfc..ed01ad89b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -17,26 +17,6 @@ module ApplicationHelper link_to(image_tag("RSS.png", :size => "16x16", :border => 0), args, :class => "rsssmall") end - def richtext_area(object_name, method, options = {}) - id = "#{object_name}_#{method}" - type = options.delete(:format) || "markdown" - - tag.div(:id => "#{id}_container", :class => "richtext_container") do - output_buffer << tag.div(:id => "#{id}_content", :class => "richtext_content") do - output_buffer << text_area(object_name, method, options.merge("data-preview-url" => preview_url(:type => type))) - output_buffer << tag.div("", :id => "#{id}_preview", :class => "richtext_preview richtext text-break") - end - - output_buffer << tag.div(:id => "#{id}_help", :class => "richtext_help") do - output_buffer << render("site/#{type}_help") - output_buffer << tag.div(:class => "buttons") do - output_buffer << submit_tag(I18n.t("site.richtext_area.edit"), :id => "#{id}_doedit", :class => "richtext_doedit deemphasize", :disabled => true) - output_buffer << submit_tag(I18n.t("site.richtext_area.preview"), :id => "#{id}_dopreview", :class => "richtext_dopreview deemphasize") - end - end - end - end - def dir if dir = params[:dir] dir == "rtl" ? "rtl" : "ltr" diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index 670c7dc32..d04d5e6bd 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -51,7 +51,7 @@ :when => friendly_date_ago(comment.created_at), :exact_time => l(comment.created_at), :user => link_to(comment.author.display_name, user_path(comment.author))) %> - —
+ — <%= comment.body.to_html %> diff --git a/app/views/changesets/index.html.erb b/app/views/changesets/index.html.erb index 3e946670d..e9e620062 100644 --- a/app/views/changesets/index.html.erb +++ b/app/views/changesets/index.html.erb @@ -3,7 +3,7 @@ <%= render @changesets %> <% if @changesets.size == 20 -%> -# <%= t ".heading" %>
- ## <%= t ".subheading" %>
* <%= t ".first" %>
- * <%= t ".second" %>
1. <%= t ".first" %>
- 2. <%= t ".second" %>