2013-08-16 22:53:28 +08:00
|
|
|
<!-- fq -->
|
|
|
|
<h3><%= l(:label_user_response) %></h3>
|
2013-12-30 16:03:28 +08:00
|
|
|
<div style="width: 80%; margin-left:10%;">
|
2013-11-07 11:02:32 +08:00
|
|
|
<%= form_for('new_form', :method => :post,
|
|
|
|
:url => {:controller => 'words', :action => 'leave_project_message'}) do |f|%>
|
2013-12-30 16:03:28 +08:00
|
|
|
<%= f.text_area 'project_message', :rows => 3, :cols => 65,
|
|
|
|
:placeholder => "#{l(:label_welcome_my_respond)}",
|
|
|
|
:style => "resize: none; width: 98%",
|
|
|
|
:class => 'noline'%>
|
|
|
|
<%= submit_tag l(:button_leave_meassge), :name => nil , :class => "enterprise" , :style => "display: block; float: right; margin-right: 1%; margin-top: 1px;"%>
|
2013-12-24 10:57:59 +08:00
|
|
|
<% end %>
|
2013-12-30 16:03:28 +08:00
|
|
|
</div>
|
|
|
|
<div style="clear: both;"></div>
|
2013-08-16 22:53:28 +08:00
|
|
|
<% if @jour.size >0 %>
|
2013-12-30 16:03:28 +08:00
|
|
|
<ul class="message-for-user">
|
|
|
|
<% for journal in @jour%>
|
2013-12-30 17:13:44 +08:00
|
|
|
<li id='word_li_<%=journal.id.to_s%>' class="outer-message-for-user">
|
|
|
|
<span class="portrait"><%= image_tag(url_to_avatar(journal.user), :class => "avatar") %></span>
|
|
|
|
<span class="body">
|
2013-12-30 16:03:28 +08:00
|
|
|
<span class="user"><%= link_to journal.user, user_path(journal.user)%></span>
|
|
|
|
<span class="font_lighter"><%= l(:label_projects_feedback) %></span>
|
2013-12-30 17:13:44 +08:00
|
|
|
<%= textilizable journal.notes%>
|
|
|
|
<span class="font_lighter"> <%= l :label_update_time %>: <%= format_time journal.created_on %></span>
|
|
|
|
<% id = 'project_respond_form_'+journal.id.to_s%>
|
|
|
|
<span>
|
|
|
|
<%= link_to l(:label_projects_feedback_respond),'',
|
|
|
|
{:focus => 'project_respond',
|
|
|
|
:onclick => "toggleAndSettingWordsVal($('##{id}'),
|
|
|
|
$('##{id} textarea'),
|
|
|
|
'#{l(:label_reply_plural)} #{journal.user.show_name}: ');
|
|
|
|
return false;"} %>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<div id='<%= id %>' class="respond-form">
|
2013-12-30 16:03:28 +08:00
|
|
|
<%= render :partial => 'new_respond', :locals => {:journal => journal, :m_reply_id => journal} %>
|
2013-12-30 17:13:44 +08:00
|
|
|
</div>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<div>
|
2013-12-30 16:03:28 +08:00
|
|
|
<%= render :partial => "words/journal_reply", :locals => {:journal => journal } %>
|
|
|
|
</div>
|
2013-12-30 17:13:44 +08:00
|
|
|
</li>
|
2013-12-30 16:03:28 +08:00
|
|
|
<% end %>
|
|
|
|
</ul>
|
2013-08-16 22:53:28 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="pagination" style="float:left;">
|
|
|
|
<ul>
|
|
|
|
<%= pagination_links_full @feedback_pages %>
|
2013-12-24 10:57:59 +08:00
|
|
|
</ul>
|
2013-08-16 22:53:28 +08:00
|
|
|
</div>
|