diff --git a/app/views/org_document_comments/show.html.erb b/app/views/org_document_comments/show.html.erb
index dfa37bfb6..dbeabfa72 100644
--- a/app/views/org_document_comments/show.html.erb
+++ b/app/views/org_document_comments/show.html.erb
@@ -23,6 +23,9 @@
<% else %>
组织文章
<% end %>
+ <% if @document.organization.home_id == @document.id %>
+ 已设为首页
+ <% end %>
<%= link_to @document.title, org_document_comment_path(:id => @document.id, :organization_id => @document.organization.id) %>
@@ -45,8 +48,14 @@
-
- <%= 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 %>
+ <%= form_for('new_form', :url => {:controller => 'organizations', :action => 'cancel_homepage', :id => @document.organization_id, :home_id => @document.id}, :method => "put", :remote => true) do |f| %>
+ 取消首页
+ <% 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| %>
+ 设为首页
+ <% end %>
<% end %>
-