Commit 83bd4490c01f37c1432dde537fc3dafa23ce4c19

Authored by Victor Costa
1 parent bc02f2ba

pairwise_plugin: put embeded code outside the cache block

plugins/pairwise/views/content_viewer/_result.html.erb
... ... @@ -19,7 +19,7 @@
19 19  
20 20 <% cache_timeout("pairwise-result-#{pairwise_content.id}", 1.hours) do %>
21 21 <div class="pairwise_content">
22   -<%= pairwise_spinner(pairwise_content) %>
  22 + <%= pairwise_spinner(pairwise_content) %>
23 23  
24 24 <div class="total_votes">
25 25 <span class="label"><%= _('Total votes:') %></span>
... ... @@ -46,6 +46,8 @@
46 46 </tbody>
47 47 </table>
48 48 </div>
  49 + <% end %>
  50 +
49 51 <% if @page.allow_edit?(user) %>
50 52 <div class="embeded_code">
51 53 <span class="embeded_code_link"><a href="javascript:;"><%= _("Show/Hide Embeded Code") %></a></span>
... ... @@ -54,8 +56,6 @@
54 56 </div>
55 57 </div>
56 58 <% end %>
57   - <%#= link_to _('Vote'), @page.url, :class=>"button with-text icon-edit" %>
58   -<% end %>
59 59 <% end %>
60 60  
61 61 </div>
... ...