51 lines
2.7 KiB
Plaintext
51 lines
2.7 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>
|
|
<div class="homepagePostIntro break_word upload_img list_style maxh360 lh18 table_maxWidth" >
|
|
<%= activity.content.to_s.html_safe %>
|
|
</div>
|
|
<div class="cl"></div>
|
|
</div>
|
|
<div class="cl"></div>
|
|
</div>
|
|
</div>
|