2014-01-06 21:11:20 +08:00
|
|
|
<% reply_allow = JournalsForMessage.create_by_user? User.current %>
|
2013-12-26 19:28:18 +08:00
|
|
|
<% ids_r = 'reply_respond_form_'+ reply.id.to_s %>
|
|
|
|
<li id='word_li_<%=reply.id.to_s%>' onmouseover="$('#<%= ids_r %>').show()" onmouseout="$('#<%= ids_r %>').hide()">
|
2013-12-25 21:00:40 +08:00
|
|
|
<span class="portrait">
|
2013-12-28 12:09:56 +08:00
|
|
|
<%= image_tag url_to_avatar(reply.user), :class => "avatar-3" %>
|
2013-12-25 21:00:40 +08:00
|
|
|
</span>
|
2013-12-28 10:48:10 +08:00
|
|
|
<div class="message-body">
|
2013-12-28 12:09:56 +08:00
|
|
|
<% id = 'project_respond_form_'+ reply.id.to_s %>
|
2013-12-28 10:48:10 +08:00
|
|
|
<p>
|
|
|
|
<span><%= link_to reply.user.name, user_path(reply.user) %>: </span>
|
|
|
|
<span class="message-notes"> <%= reply.notes %></span>
|
|
|
|
</p>
|
2013-12-26 15:32:34 +08:00
|
|
|
<p>
|
2013-12-26 11:05:09 +08:00
|
|
|
<span class="time"><%= format_time reply.created_on %></span>
|
2013-12-26 19:28:18 +08:00
|
|
|
<span style="display: none; margin-left: 4px;" id='<%=ids_r%>' >
|
2014-01-06 21:11:20 +08:00
|
|
|
<% if reply_allow %>
|
2013-12-26 16:06:59 +08:00
|
|
|
<%= link_to l(:label_projects_feedback_respond),'',
|
2014-03-13 22:06:49 +08:00
|
|
|
{:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{id}'), $('##{id} textarea'), '#{l(:label_reply_plural)} #{m_reply_id.user.name}: '); return false;"}
|
2013-12-26 16:06:59 +08:00
|
|
|
%>
|
2014-01-06 21:11:20 +08:00
|
|
|
<% end %>
|
|
|
|
<% if @user == User.current || User.current.admin? || reply.user.id == User.current.id %>
|
2013-12-26 19:28:18 +08:00
|
|
|
<%= link_to(l(:label_newfeedback_delete), {:controller => 'words', :action => 'destroy', :object_id => reply, :user_id => reply.user},
|
2013-12-26 20:22:19 +08:00
|
|
|
:remote => true, :confirm => l(:text_are_you_sure), :method => 'delete', :class => "delete", :title => l(:button_delete)) %>
|
2013-12-26 16:06:59 +08:00
|
|
|
<% end %>
|
2013-12-26 10:52:16 +08:00
|
|
|
</span>
|
2013-12-25 21:00:40 +08:00
|
|
|
</p>
|
2013-12-26 10:52:16 +08:00
|
|
|
</div>
|
2013-12-26 11:13:30 +08:00
|
|
|
<div id='<%=id%>' class="respond-form">
|
2014-01-06 21:11:20 +08:00
|
|
|
<% if reply_allow %>
|
2013-12-25 21:00:40 +08:00
|
|
|
<%= render :partial => "words/new_respond", :locals => {:journal => journal, :m_reply_id => m_reply_id} %>
|
2014-01-06 21:11:20 +08:00
|
|
|
<% end %>
|
2013-12-26 19:28:18 +08:00
|
|
|
</div>
|
|
|
|
<div style="clear: both;"></div>
|
2013-12-25 21:00:40 +08:00
|
|
|
</li>
|