socialforge/app/views/words/_journal_reply.html.erb

33 lines
1.2 KiB
Plaintext

<style>
.avatar-3{
width: 35px;
height: 35px;
}
.inner-right{
float: left;
}
</style>
<ul>
<% fetch_user_leaveWord_reply(journal).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>:&nbsp;</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>