Permalink
Browse files

fix a error which happened on portal/index is accessed without login-…

…session
  • Loading branch information...
1 parent 6dbcab6 commit 3f4b03a5d474bfee278a02b7d598cb72a89bec11 @maedana maedana committed Feb 16, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 app/views/layouts/layout.html.erb
@@ -121,9 +121,11 @@
<%= render :partial => "shared/global_footer_navigation" -%>
<% end -%>
- <div id="thankyou_dialog" title="<%= _('Send a %{thankyou_label}') % {:thankyou_label => Thankyou.thankyou_label} %>">
- <%= render :partial => 'thankyous/form' %>
- </div>
+ <% if current_user -%>
+ <div id="thankyou_dialog" title="<%= _('Send a %{thankyou_label}') % {:thankyou_label => Thankyou.thankyou_label} %>">
+ <%= render :partial => 'thankyous/form' %>
+ </div>
+ <% end -%>
</div><!-- main -->
<% end -%>

0 comments on commit 3f4b03a

Please sign in to comment.