详情页面取消首页问题
This commit is contained in:
parent
3d3c859473
commit
a138ee31ab
|
@ -23,6 +23,9 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<span style="color:#269ac9;">组织文章</span>
|
<span style="color:#269ac9;">组织文章</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% if @document.organization.home_id == @document.id %>
|
||||||
|
<span class="red_homework_btn_cir ml5">已设为首页</span>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="homepagePostTitle postGrey"><%= link_to @document.title, org_document_comment_path(:id => @document.id, :organization_id => @document.organization.id) %></div>
|
<div class="homepagePostTitle postGrey"><%= link_to @document.title, org_document_comment_path(:id => @document.id, :organization_id => @document.organization.id) %></div>
|
||||||
<div class="homepagePostDate">
|
<div class="homepagePostDate">
|
||||||
|
@ -45,8 +48,14 @@
|
||||||
<li class="homepagePostSettingIcon">
|
<li class="homepagePostSettingIcon">
|
||||||
<ul class="homepagePostSettiongText">
|
<ul class="homepagePostSettiongText">
|
||||||
<li>
|
<li>
|
||||||
<%= form_for('new_form', :url => {:controller => 'organizations', :action => 'set_homepage', :id => @document.organization_id, :home_id => @document.id}, :method => "put", :remote => true) do |f| %>
|
<% if @document.organization.home_id == @document.id %>
|
||||||
<a href="javascript:void(0);" class="postOptionLink" onclick="$(this).parent().submit();">设为首页</a>
|
<%= form_for('new_form', :url => {:controller => 'organizations', :action => 'cancel_homepage', :id => @document.organization_id, :home_id => @document.id}, :method => "put", :remote => true) do |f| %>
|
||||||
|
<a href="javascript:void(0);" class="postOptionLink" onclick="$(this).parent().submit();">取消首页</a>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<%= form_for('new_form', :url => {:controller => 'organizations', :action => 'set_homepage', :id => @document.organization_id, :home_id => @document.id}, :method => "put", :remote => true) do |f| %>
|
||||||
|
<a href="javascript:void(0);" class="postOptionLink" onclick="$(this).parent().submit();">设为首页</a>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
Loading…
Reference in New Issue