组织帖子,回复有时不可用
This commit is contained in:
parent
41ee915ece
commit
850a88c6b0
|
@ -102,7 +102,7 @@ class SubDocumentCommentsController < ApplicationController
|
||||||
@subdomain = @document.sub_domain
|
@subdomain = @document.sub_domain
|
||||||
@org_subfield = @subdomain.org_subfield
|
@org_subfield = @subdomain.org_subfield
|
||||||
@organization = @org_subfield.organization
|
@organization = @org_subfield.organization
|
||||||
@act = OrgActivity.find(params[:id])
|
@act = OrgActivity.find(params[:act_id])
|
||||||
@comment = SubDocumentComment.new(:sub_domain_id => @document.sub_domain, :creator_id => User.current.id, :reply_id => params[:id])
|
@comment = SubDocumentComment.new(:sub_domain_id => @document.sub_domain, :creator_id => User.current.id, :reply_id => params[:id])
|
||||||
@comment.content = params[:sub_content]
|
@comment.content = params[:sub_content]
|
||||||
@document.children << @comment
|
@document.children << @comment
|
||||||
|
|
|
@ -77,7 +77,11 @@
|
||||||
<%= render :partial => 'dir_list' %>
|
<%= render :partial => 'dir_list' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<% memo = Memo.where(:id => 1232).first %>
|
||||||
|
<% unless memo.nil? %>
|
||||||
<a href="<%= Setting.protocol + "://" %><%=Setting.host_name %>/forums/1/memos/1232" >如何提交代码</a>
|
<a href="<%= Setting.protocol + "://" %><%=Setting.host_name %>/forums/1/memos/1232" >如何提交代码</a>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<div class="fr">
|
<div class="fr">
|
||||||
<a style="color: #7f7f7f;">导出统计结果:</a>
|
<a style="color: #7f7f7f;">导出统计结果:</a>
|
||||||
<%= link_to "最近一周", {:controller => 'repositories', :action => 'export_rep_static', :format => 'xls', :rev => @rev, :cycle => "week" } %> <a style="color: #7f7f7f;">|</a>
|
<%= link_to "最近一周", {:controller => 'repositories', :action => 'export_rep_static', :format => 'xls', :rev => @rev, :cycle => "week" } %> <a style="color: #7f7f7f;">|</a>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="resources mt10" id="organization_document_<%= document.id %>">
|
<div class="resources mt10" id="organization_sub_document_comments_<%= document.id %>">
|
||||||
<div class="homepagePostBrief">
|
<div class="homepagePostBrief">
|
||||||
<div class="homepagePostPortrait">
|
<div class="homepagePostPortrait">
|
||||||
<%= link_to image_tag(url_to_avatar(User.find(document.creator_id)), :width => 45, :heigth => 45), user_url_in_org(document.creator_id) %>
|
<%= link_to image_tag(url_to_avatar(User.find(document.creator_id)), :width => 45, :heigth => 45), user_url_in_org(document.creator_id) %>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
$("#organization_document_<%= @act.id %>").replaceWith("<%= escape_javascript(render :partial => 'sub_document_comments/show_sub_document', :locals => {:document => @document,:flag => params[:flag], :act => @act, :organization => @organization}) %>");
|
$("#organization_sub_document_comments_<%= @document.id %>").replaceWith("<%= escape_javascript(render :partial => 'sub_document_comments/show_sub_document', :locals => {:document => @document,:flag => params[:flag], :act => @act, :organization => @organization}) %>");
|
||||||
sd_create_editor_from_data(<%= @act.id %>,"","100%", "<%=@act.class.to_s%>");
|
sd_create_editor_from_data(<%= @act.id %>,"","100%", "<%=@act.class.to_s%>");
|
||||||
|
|
Loading…
Reference in New Issue