<% if current_subject.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 => "header_icon") %>
<%=t('tie.suggestion.one') %>
<% if (sgs = current_subject.suggestions(2)).present? %> <%= render :partial => '/ties/tie', :collection => sgs %> <%end%>
<%end%>