|
|
|
@ -26,12 +26,21 @@
|
|
|
|
|
) if User.current && User.current.id == activity.author.id %>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<% if activity.id == activity.blog.homepage_id %>
|
|
|
|
|
<%= 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 %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to(
|
|
|
|
|
l(:button_set_homepage),
|
|
|
|
|
{:controller => 'blogs',:action => 'set_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 %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|