38 lines
1.6 KiB
Plaintext
38 lines
1.6 KiB
Plaintext
|
||
<% if jour.size >0 %>
|
||
<% remove_allowed = (User.current.id == jour.first.user_id) %>
|
||
<ul class="message-for-user">
|
||
<% for journal in jour%>
|
||
<li class="outer-message-for-user">
|
||
<span class="portrait"><%= image_tag(url_to_avatar(journal.user), :class => "avatar") %></span>
|
||
<span class="body">
|
||
<span class="user"><%= link_to journal.user, user_path(journal.user)%></span>
|
||
<% if @user == User.current %>
|
||
<span class="font_lighter"><%= l(:label_leave_me_message) %></span>
|
||
<% else %>
|
||
<span class="font_lighter"><%= l(:label_leave_others_message) %></span>
|
||
<% end %>
|
||
<p>
|
||
<%= textilizable journal.notes%>
|
||
</p>
|
||
<span class="font_lighter"> <%= l :label_comment_time %>: <%= format_time journal.created_on %></span>
|
||
<% ids = 'project_respond_form_'+ journal.id.to_s%>
|
||
<%#= toggle_link l(:label_projects_feedback_respond), ids, {:focus => 'project_respond'} %>
|
||
|
||
<%= link_to l(:label_projects_feedback_respond),'',
|
||
{:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{ids}'), $('##{ids} textarea'), '#{l(:label_reply_plural)} #{journal.user.show_name}:'); return false;"}
|
||
%>
|
||
</span>
|
||
<div style="clear: both;"></div>
|
||
<div id=<%= ids %> class="respond-form">
|
||
<%= render :partial => 'words/new_respond', :locals => {:journal => journal, :m_reply_id => journal.id} %>
|
||
</div>
|
||
<div>
|
||
<%= render :partial => "words/journal_reply", :locals => {:journal => journal } %>
|
||
</div>
|
||
</li>
|
||
<% end %>
|
||
</ul>
|
||
<% end %>
|
||
|