21 lines
1.3 KiB
Plaintext
21 lines
1.3 KiB
Plaintext
<% if AtMessage === ma && ma.at_valid? %>
|
|
<ul class="homepageNewsList fl">
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><%=link_to image_tag(url_to_avatar(ma.author), :width => "30", :height => "30"),user_path(ma.author) %></a></li>
|
|
<li class="homepageNewsPubType fl">
|
|
<span class="newsBlue homepageNewsPublisher"><%= ma.author.login %></span><span class="homepageNewsType fl">提到了你:</span>
|
|
</li>
|
|
<li class="homepageNewsContent fl">
|
|
<%= link_to ma.subject.html_safe, ma.url,
|
|
:class =>"#{ma.viewed? ? "newsGrey" : "newsBlack"}",
|
|
:onmouseover =>"message_titile_show($(this),event)",
|
|
:onmouseout => "message_titile_hide($(this))" %></li>
|
|
<div style="display: none" class="message_title_red system_message_style">
|
|
<p><strong>标题:</strong><%= ma.subject %></p>
|
|
<% unless ma.description.nil? %>
|
|
<div class="fl"><strong>内容:</strong></div>
|
|
<div class="ml36"><%= ma.description.html_safe %></div>
|
|
<% end %>
|
|
</div>
|
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
|
</ul>
|
|
<% end %> |