% reply_allow = JournalsForMessage.create_by_user? User.current %> <% if jour && jour.size >0 %> <% remove_allowed = (User.current.id == jour.first.user_id) %>
<%= textilizable journal.notes%>
<%= l :label_comment_time %>: <%= format_time journal.created_on %> <% ids = 'project_respond_form_'+ journal.id.to_s%> <% if reply_allow %> <%= link_to l(:button_reply),'', {:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{ids}'), $('##{ids} textarea'), '#{l(:label_reply_plural)} #{journal.user.name}: '); $('##{ids} textarea') ;return false;"} %> <% end %> <% if @user == User.current || User.current.admin? || journal.user.id == User.current.id %> <%= link_to(l(:label_newfeedback_delete), {:controller => 'words', :action => 'destroy', :object_id => journal, :user_id => user}, :remote => true, :confirm => l(:text_are_you_sure), :method => 'delete', :class => "delete", :title => l(:button_delete)) %> <% end %>