Skip to content

Commit

Permalink
remove the notification_email_top customization
Browse files Browse the repository at this point in the history
  • Loading branch information
nlalonde committed Oct 6, 2014
1 parent ad387a1 commit 96e4d2b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions app/mailers/user_notifications.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,11 @@ def send_notification_email(opts)
end
end

top = SiteText.text_for(:notification_email_top)

html = UserNotificationRenderer.new(Rails.configuration.paths["app/views"]).render(
template: 'email/notification',
format: :html,
locals: { context_posts: context_posts,
post: post,
top: top ? PrettyText.cook(top).html_safe : nil,
classes: RTL.new(user).css_class
}
)
Expand Down
1 change: 0 additions & 1 deletion app/models/site_text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def self.formats
add_text_type :top, allow_blank: true, format: :html
add_text_type :bottom, allow_blank: true, format: :html
add_text_type :head, allow_blank: true, format: :html
add_text_type :notification_email_top, allow_blank: true, format: :markdown

def site_text_type
@site_text_type ||= SiteText.find_text_type(text_type)
Expand Down
5 changes: 0 additions & 5 deletions app/views/email/notification.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<div id='main' class=<%= classes %>>

<% if top.present? %>
<div><%= top %></div>
<hr>
<% end %>

<%= render :partial => 'email/post', :locals => {:post => post} %>

<% if context_posts.present? %>
Expand Down
3 changes: 0 additions & 3 deletions config/locales/server.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,6 @@ en:
bottom:
title: "Bottom of the pages"
description: "HTML that will be added at the bottom of every page."
notification_email_top:
title: "Notification Email Top"
description: "A message that will be displayed at the top of all notification emails."

site_settings:
censored_words: "Words that will be automatically replaced with &#9632;&#9632;&#9632;&#9632;"
Expand Down

0 comments on commit 96e4d2b

Please sign in to comment.