Merge branch 'develop' into cxt_course
This commit is contained in:
commit
6d1667b4ae
|
@ -29,7 +29,7 @@ class BlogsController < ApplicationController
|
||||||
def set_homepage
|
def set_homepage
|
||||||
@blog = Blog.find(params[:id])
|
@blog = Blog.find(params[:id])
|
||||||
@blog.update_attribute(:homepage_id, params[:article_id])
|
@blog.update_attribute(:homepage_id, params[:article_id])
|
||||||
redirect_to user_blogs_path(params[:user_id])
|
redirect_to user_path(params[:user_id])
|
||||||
end
|
end
|
||||||
|
|
||||||
def cancel_homepage
|
def cancel_homepage
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<% if act.container_type == 'Organization' %>
|
<% if act.container_type == 'Organization' %>
|
||||||
<% if act.org_act_type == 'OrgDocumentComment' && act.org_act_id != @organization.home_id %>
|
<% if act.org_act_type == 'OrgDocumentComment' %>
|
||||||
<%= render :partial => 'organizations/show_org_document', :locals => {:document => act.org_act, :act => act, :flag => 2, :org_subfield_id => params[:org_subfield_id]} %>
|
<%= render :partial => 'organizations/show_org_document', :locals => {:document => act.org_act, :act => act, :flag => 2, :org_subfield_id => params[:org_subfield_id]} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue