<% if current_user.suggestion.present? %> <% content_for :javascript do %> $(".suggestions .tie_close").livequery("click",function(){ temp = $(this); $.get("<%=suggestion_ties_path%>", function(data) { temp.parents(".tie").replaceWith(data); }); }); <% end %>
<%= image_tag('btn/notifications.png', :class => "tie_icon") %>
<%=t('tie.suggestion.one') %>
<% if (sgs = current_user.suggestions(2)).present? %> <%= render sgs %> <%end%>
<%end%>