-
<%=link_to image_tag(url_to_avatar(ma.memo.author), :width => "30", :height => "30"), user_path(ma.memo.author) %>
-
<%=link_to ma.memo.author, user_path(ma.memo.author), :class => "newsBlue homepageNewsPublisher" %>
" ><%= ma.memo.parent_id.nil? ? "在贴吧发布帖子:" : "回复了贴吧帖子:" %>
<% if ma.memo.parent_id.nil? %>
-
<%= link_to ma.memo.subject, forum_memo_path(ma.memo.forum_id, ma.memo.parent_id ? ma.memo.parent_id: ma.memo.id), :class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}",
:onmouseover =>"message_titile_show($(this),event)",
:onmouseout => "message_titile_hide($(this))" %>
标题:<%= ma.memo.subject %>
<% unless ma.memo.content.nil? %>
内容:
<%= ma.memo.content.html_safe %>
<% end %>
<% else %>
-
<%= link_to ma.memo.content.html_safe, forum_memo_path(ma.memo.forum_id, ma.memo.parent_id ? ma.memo.parent_id: ma.memo.id), :class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}",
:onmouseover =>"message_titile_show($(this),event)",
:onmouseout => "message_titile_hide($(this))" %>
标题:<%= ma.memo.subject %>
<% unless ma.memo.content.nil? %>
内容:
<%= ma.memo.content.html_safe %>
<% end %>
<% end %>
- <%= time_tag(ma.memo.created_at).html_safe %>
<% end %>
<% end %>