52 lines
3.0 KiB
Plaintext
52 lines
3.0 KiB
Plaintext
<div class="resources mt10" id="user_activity_<%= user_activity_id%>" >
|
|
<div class="homepagePostBrief" onmouseover="$('#homepage_message_setting_<%=activity.id%>').show();" onmouseout="$('#homepage_message_setting_<%= activity.id%>').hide();">
|
|
<div class="homepagePostDes">
|
|
<% if activity.author.id == User.current.id%>
|
|
<div class="homepagePostSetting" id="homepage_message_setting_<%= activity.id%>" style="display: none">
|
|
<ul>
|
|
<li class="homepagePostSettingIcon">
|
|
<ul class="homepagePostSettiongText">
|
|
<li>
|
|
<%= link_to(
|
|
l(:button_edit_homepage),
|
|
{:controller => 'blog_comments',:action => 'edit',:user_id=>activity.author_id,:blog_id=>activity.blog_id, :id => activity.id, :is_homepage => 1},
|
|
:class => 'postOptionLink'
|
|
) if User.current && User.current.id == activity.author.id %>
|
|
</li>
|
|
<li>
|
|
<%= link_to(
|
|
l(:button_delete_homepage),
|
|
{:controller => 'blog_comments',:action => 'destroy',:user_id=>activity.author_id,:blog_id=>activity.blog_id, :id => activity.id},
|
|
:method => :delete,
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
:class => 'postOptionLink'
|
|
) if User.current && User.current.id == activity.author.id %>
|
|
</li>
|
|
<li>
|
|
<%= link_to(
|
|
l(:button_cancel_homepage),
|
|
{:controller => 'blogs',:action => 'cancel_homepage',:user_id=>activity.author_id,:id=>activity.blog_id, :article_id => activity.id},
|
|
:method => :post,
|
|
:class => 'postOptionLink'
|
|
) if User.current && User.current.id == activity.blog.author_id %>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<%end%>
|
|
<div class="cl"></div>
|
|
<div class="homepagePostTitle hidden m_w530">
|
|
<%= link_to activity.title.to_s.html_safe, user_blog_blog_comment_path(:user_id=>activity.author_id,
|
|
:blog_id=>activity.blog.id,:id=>activity), :class=> "postGrey", :style => 'text-align:center;' %>
|
|
</div>
|
|
<%=render :partial =>"users/intro_content", :locals=>{:user_activity_id =>user_activity_id, :content=>activity.content} %>
|
|
|
|
<div class="cl"></div>
|
|
<div id="intro_content_show_<%= user_activity_id%>" class="fr" style="display:none;"><a href="javascript:void(0);" class="linkBlue">[展开]</a></div>
|
|
<div id="intro_content_hide_<%= user_activity_id%>" class="fr" style="display:none;"><a href="javascript:void(0);" class="linkBlue">[收起]</a></div>
|
|
</div>
|
|
<div class="cl"></div>
|
|
</div>
|
|
</div>
|