Skip to content
Permalink
Browse files

Bugfix and slight optimization.

  • Loading branch information...
Walter McGinnis
Walter McGinnis committed Jan 8, 2011
1 parent 528d6f5 commit 893f8b6f4453aa104227fc12b3a3761a0f7d5cda
Showing with 4 additions and 2 deletions.
  1. +4 −2 app/views/translations/_form.html.erb
@@ -21,10 +21,12 @@
</th>
</tr>

<% translatable_attributes = @translatable.present? ? @translatable.translatable_attributes : @translated.translatable_attributes %>
<% translatable_attributes = @translatable.present? ? @translatable.translatable_attributes : @translated.translatable_attributes
@untranslated_values_with_localized_labels = untranslated_values_with_localized_labels
-%>
<% translatable_attributes.each do |attribute_key| %>
<tr>
<% untranslated_value = untranslated_values_with_localized_labels.find { |l| l[:attribute_key] == attribute_key }
<% untranslated_value = @untranslated_values_with_localized_labels.find { |l| l[:attribute_key] == attribute_key }
locals = { :form => form, :untranslated_value => untranslated_value } %>
<%= render 'translatable_value', locals %>
<% if untranslated_value[:value].present? -%>

0 comments on commit 893f8b6

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