2015-09-28 16:14:53 +08:00
|
|
|
<% if ma.class == UserFeedbackMessage %>
|
|
|
|
<% if ma.journals_for_message_type == "JournalsForMessage" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl">
|
2016-05-16 16:16:24 +08:00
|
|
|
<a href="javascript:void(0);"><%=link_to image_tag(url_to_avatar(ma.journals_for_message.user), :width => "30", :height => "30"), user_path(ma.journals_for_message.user), :target => '_blank' %></a>
|
2015-09-28 16:14:53 +08:00
|
|
|
</li>
|
|
|
|
<li class="homepageNewsPubType fl">
|
2016-05-16 16:16:24 +08:00
|
|
|
<%=link_to ma.journals_for_message.user, user_path(ma.journals_for_message.user), :class => "newsBlue homepageNewsPublisher", :target => '_blank' %>
|
2015-09-28 16:14:53 +08:00
|
|
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>"><%= ma.journals_for_message.reply_id == 0 ? "给你留言了:" : "回复了你的留言:" %></span>
|
|
|
|
</li>
|
2016-03-10 14:52:49 +08:00
|
|
|
<li class="homepageNewsContent fl">
|
2016-07-15 16:52:18 +08:00
|
|
|
<%= link_to message_content(ma.journals_for_message.notes), feedback_path(ma.journals_for_message.jour_id, :anchor => "user_activity_#{ma.journals_for_message.id}"), :class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}", :target => '_blank'%>
|
2015-09-28 16:14:53 +08:00
|
|
|
</li>
|
|
|
|
<div style="display: none" class="message_title_red system_message_style" >
|
|
|
|
<% if ma.journals_for_message.reply_id == 0 %>
|
|
|
|
<%= ma.journals_for_message.notes.html_safe %>
|
|
|
|
<% else %>
|
|
|
|
<div class="fl"><strong>您的留言:</strong></div>
|
|
|
|
<div class="ml60"><%= JournalsForMessage.find(ma.journals_for_message.m_reply_id).notes.html_safe %></div>
|
|
|
|
<div class="fl"><strong>回复内容:</strong></div>
|
|
|
|
<div class="ml60"><%= ma.journals_for_message.notes.html_safe %></div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ma.journals_for_message.created_on).html_safe %> </li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|