|
|
@ -58,6 +58,23 @@
|
|
|
|
:class => 'postOptionLink'
|
|
|
|
:class => 'postOptionLink'
|
|
|
|
) if User.current && User.current.id == @article.author.id %>
|
|
|
|
) if User.current && User.current.id == @article.author.id %>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<% if @article.id == @article.blog.homepage_id %>
|
|
|
|
|
|
|
|
<%= link_to(
|
|
|
|
|
|
|
|
l(:button_cancel_homepage),
|
|
|
|
|
|
|
|
{:controller => 'blogs',:action => 'cancel_homepage',:user_id=>@article.author_id,:id=>@article.blog_id, :article_id => @article.id},
|
|
|
|
|
|
|
|
:method => :post,
|
|
|
|
|
|
|
|
:class => 'postOptionLink'
|
|
|
|
|
|
|
|
) if User.current && User.current.id == @article.blog.author_id %>
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
|
|
|
|
<%= link_to(
|
|
|
|
|
|
|
|
l(:button_set_homepage),
|
|
|
|
|
|
|
|
{:controller => 'blogs',:action => 'set_homepage',:user_id=>@article.author_id,:id=>@article.blog_id, :article_id => @article.id},
|
|
|
|
|
|
|
|
:method => :post,
|
|
|
|
|
|
|
|
:class => 'postOptionLink'
|
|
|
|
|
|
|
|
) if User.current && User.current.id == @article.blog.author_id %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|