commit
2c5cd7a12a
@ -1,9 +1,32 @@
|
||||
|
||||
<%= form_tag({:controller => 'words',
|
||||
:action => 'create_reply'}) do %>
|
||||
<%= text_area_tag 'project_respond', "", :class => 'noline', :style => "resize: none;", :rows => 4, :placeholder => l(:label_projects_feedback_respond_content) %>
|
||||
|
||||
<%= hidden_field_tag 'reference_id', params[:reference_id], :value => journal.id %>
|
||||
<%= submit_tag l(:button_projects_feedback_respond), :name => nil , :class => "bid_btn", :style => "margin-top: 1px;"%>
|
||||
|
||||
<% end %>
|
||||
<style>
|
||||
.avatar-3{
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
}
|
||||
.inner-right{
|
||||
float: left;
|
||||
}
|
||||
</style>
|
||||
<ul>
|
||||
<% fetch_user_leaveWord_reply.each do |reply|%>
|
||||
<li style="display: block; padding-bottom: 4px;">
|
||||
<div class="inner-right" style="float: left; height: 100%; ">
|
||||
<%= image_tag url_to_avatar(reply.user), :class => "avatar-3" %>
|
||||
</div>
|
||||
<div class="inner-right" style="float: left; width:86%; height: 100%; ">
|
||||
<% id = reply.id %>
|
||||
<span style="color: green;"><a href="/users/4245" style="color:green;"><%= reply.user.name %></a>: </span>
|
||||
<%= reply.notes %>
|
||||
<% if @user == User.current %>
|
||||
<% ids = 'project_respond_form_'+ journal.id.to_s%>
|
||||
<%= toggle_link l(:label_projects_feedback_respond), id, {:focus => 'project_respond'} %>
|
||||
<% end %>
|
||||
<p style="margin-top: 4px;"><span style="color: rgb(172, 174, 177)"><%= reply.created_on %></span></p>
|
||||
</div>
|
||||
<div id=<%= id %> style="display: none;">
|
||||
<%= render :partial => "words/new_respond", :locals => {:journal => journal} %>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
Loading…
Reference in new issue