% reply_allow = JournalsForMessage.create_by_user? User.current %>
<% if @jour.size >0 %>
<% for journal in @jour%>
-
<%= image_tag(url_to_avatar(journal.user), :class => "avatar") %>
<%= link_to journal.user, user_path(journal.user)%>
<%= textilizable journal.notes%>
<%= l :label_update_time %>: <%= format_time journal.created_on %>
<% id = 'project_respond_form_'+journal.id.to_s%>
<% if reply_allow %>
<%= link_to l(:label_newfeedback_respone),'#',
{:focus => 'project_respond',
:onclick => "toggleAndSettingWordsVal($('##{id}'),
$('##{id} textarea'),
'#{l(:label_reply_plural)} #{journal.user.name}: ');
return false;"} %>
<% end %>
<% if User.current.logged? %>
<% if journal.user_id==User.current.id|| User.current.admin? %>
<%= link_to(l(:button_delete),{:controller => 'words', :action => 'destroyJournal', :object_id => journal.id, :project_id=>@project.id, :page=>@page},
:remote => true, :title => l(:button_delete), :confirm => l(:text_are_you_sure), :method => 'delete', :class => "delete") %>
<% end %>
<% end %>
<% if reply_allow %>
<%= render :partial => 'words/new_respond', :locals => {:journal => journal, :m_reply_id => journal} %>
<% end %>
<%= render :partial => "words/journal_reply", :locals => {:journal => journal } %>
<% end %>
<% end %>