Skip to content
Permalink
Browse files

Display rendered html if description or other tinymce edited value.

  • Loading branch information...
Walter McGinnis
Walter McGinnis committed Dec 20, 2010
1 parent c649f21 commit bf139c2d1dd0bed3ab0c394c24486fe05f763da8
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/views/translations/_translatable_value.html.erb
@@ -2,7 +2,9 @@

<td colspan="2" class="original_label_and_value" valign="top" style="padding: 5px;">
<%= h(untranslated_value[:localized_label]) -%><br />
<% if untranslated_value[:attribute_key] == :description -%>
<% if [:description,
:index_page_extra_side_bar_html].include?(untranslated_value[:attribute_key]) ||
(form.object.translatable_class == ConfigurableSetting && form.object.translatable.name == 'additional_footer_content') -%>
<%= untranslated_value[:value] -%>
<% else -%>
<%= h(untranslated_value[:value]) -%>

0 comments on commit bf139c2

Please sign in to comment.
You can’t perform that action at this time.