app/views/tolk/locales/show.html.erb in tolk-1.0 vs app/views/tolk/locales/show.html.erb in tolk-1.1.0
- old
+ new
@@ -1,17 +1,17 @@
<% content_for :locale do %>
<span class="locale"><%= @locale.language_name %></span>
<% end %>
<% content_for :head do %>
- <link rel="alternate" type="application/rss+xml" title="RSS" href="<%= tolk_locale_path(@locale, :format => 'atom') -%>" />
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="<%= tolk.locale_path(@locale, :format => 'atom') -%>" />
<% end %>
-<h3 class="switch">Phrases missing translation (<%= @locale.count_phrases_without_translation %>) <span>(<%= link_to 'See completed translations', all_tolk_locale_path(@locale) %>)</span></h3>
+<h3 class="switch">Phrases missing translation (<%= @locale.count_phrases_without_translation %>) <span>(<%= link_to 'See completed translations', tolk.all_locale_path(@locale) %>)</span></h3>
<% if @locale.has_updated_translations? && action_name != 'updated' %>
- <span class="notice">Some phrases have changed. <%= link_to "Update translations", updated_tolk_locale_path(@locale) %>.</span>
+ <span class="notice">Some phrases have changed. <%= link_to "Update translations", tolk.updated_locale_path(@locale) %>.</span>
<% end %>
<div class="search">
<%= render :partial => "tolk/searches/form", :locals => { :locale => @locale } %>
</div>
@@ -35,10 +35,10 @@
</td>
<td class="phrase">
<% if params[:q].present? -%>
<%= highlight(format_i18n_value(phrase.translations.primary.text), params[:q]) -%>
<% else -%>
- <%= format_i18n_value(phrase.translations.primary.text) -%>
+ <%= format_i18n_value(phrase.translations.primary.text).html_safe -%>
<% end -%>
<span class="key" title="<%= phrase.key %>"><%= truncate(phrase.key, :length => 100) %></span>
</td>
</tr>
<% end %>