54 lines
2.5 KiB
Plaintext
54 lines
2.5 KiB
Plaintext
<div class="homepageContentContainer" style="margin-top: 25px;">
|
|
<div class="homepageContent">
|
|
<div class="postContainer mb10 pr">
|
|
<% if User.current && User.current == @article.user %>
|
|
<div class="homepagePostSetting" id="message_setting_<%= @article.id%>" style="top: -25px;">
|
|
<ul>
|
|
<li class="homepagePostSettingIcon">
|
|
<ul class="homepagePostSettiongText">
|
|
<li>
|
|
<% if @article.id == @article.homepage.article_id %>
|
|
<%= link_to(
|
|
l(:button_cancel_base_homepage),
|
|
{:controller => 'homepages',:action => 'cancel_homepage',:user_id=>@article.user_id,:id=>@article.homepage_id, :article_id => @article.id, :show => 1},
|
|
:method => :post,
|
|
:class => 'postOptionLink'
|
|
)%>
|
|
<% else %>
|
|
<%= link_to(
|
|
l(:button_set_base_homepage),
|
|
{:controller => 'homepages',:action => 'set_homepage',:user_id=>@article.user_id,:id=>@article.homepage_id, :article_id => @article.id, :show => 1},
|
|
:method => :post,
|
|
:class => 'postOptionLink'
|
|
) %>
|
|
<% end %>
|
|
</li>
|
|
<li>
|
|
<%= link_to(
|
|
l(:button_edit),
|
|
{:controller => 'article_homepages',:action => 'edit', :id => @article.id},
|
|
:class => 'postOptionLink'
|
|
) %>
|
|
</li>
|
|
<li>
|
|
<%= link_to(
|
|
l(:button_delete),
|
|
{:controller => 'article_homepages',:action => 'destroy', :id => @article.id},
|
|
:method => :delete,
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
:class => 'postOptionLink'
|
|
) %>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<% end %>
|
|
<div class="cl"></div>
|
|
|
|
<div class="break_word" style="padding: 5px 5px 0 0">
|
|
<%=@article.content.html_safe %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |