Skip to content
Browse files

More rails3 compatibility and get rid of custom LinkRenderer

  • Loading branch information...
1 parent a226141 commit 17625d603b0d9129d78c2c8ee6a86b63932cdcd2 @lifo lifo committed Jun 3, 2010
View
4 app/views/tolk/locales/all.html.erb
@@ -13,7 +13,7 @@
<div class="translations">
<% if @phrases.any? %>
- <% form_for @locale do |locale_form| %>
+ <%= form_for @locale do |locale_form| %>
<table class="translations">
<tr>
<th class="translation"><%= @locale.language_name -%></th>
@@ -53,7 +53,7 @@
<p><%= locale_form.submit "Save changes" %></p>
</div>
<div class="paginate">
- <%= will_paginate @phrases, :renderer => Tolk::LinkRenderer %>
+ <%= will_paginate @phrases %>
</div>
<% end %>
<% else %>
View
4 app/views/tolk/locales/show.html.erb
@@ -18,7 +18,7 @@
<div class="translations">
<% if @phrases.any? %>
- <% form_for @locale do |locale_form| %>
+ <%= form_for @locale do |locale_form| %>
<table class="translations">
<tr>
<th class="translation"><%= @locale.language_name -%></th>
@@ -49,7 +49,7 @@
</div>
<% end %>
<div class="paginate">
- <%= will_paginate @phrases, :renderer => Tolk::LinkRenderer %>
+ <%= will_paginate @phrases %>
</div>
<% else %>
<p style="text-align: left">There aren't any missing or updated phrases that need translation.</p>
View
4 app/views/tolk/searches/show.html.erb
@@ -14,7 +14,7 @@
<div class="translations">
<% if @phrases.any? %>
- <% form_for @locale do |locale_form| %>
+ <%= form_for @locale do |locale_form| %>
<table class="translations">
<tr>
<th class="translation"><%= @locale.language_name -%></th>
@@ -47,7 +47,7 @@
</div>
<% end %>
<div class="paginate">
- <%= will_paginate @phrases, :renderer => Tolk::LinkRenderer %>
+ <%= will_paginate @phrases %>
</div>
<% else %>
<p style="text-align: left">No search results.</p>

0 comments on commit 17625d6

Please sign in to comment.
Something went wrong with that request. Please try again.