2015-11-03 17:21:32 +08:00
|
|
|
<%= javascript_include_tag "jquery.infinitescroll.js" %>
|
2015-11-12 14:55:31 +08:00
|
|
|
<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg',"init_activity_KindEditor" %>
|
|
|
|
<style type="text/css">
|
|
|
|
/*回复框*/
|
|
|
|
.homepagePostReplyInputContainer .ke-toolbar {display: none; width: 400px; border: none; background: none; padding: 0px 0px;}
|
|
|
|
.homepagePostReplyInputContainer .ke-toolbar-icon {line-height: 26px; font-size: 14px; padding-left: 26px;}
|
|
|
|
.homepagePostReplyInputContainer .ke-toolbar-icon-url {background-image: url(/images/public_icon.png)}
|
|
|
|
.homepagePostReplyInputContainer .ke-outline {padding: 0px 0px; line-height: 26px; font-size: 14px;}
|
|
|
|
.homepagePostReplyInputContainer .ke-icon-emoticons {background-position: 0px -671px; width: 50px; height: 26px;}
|
|
|
|
.homepagePostReplyInputContainer .ke-icon-emoticons:hover {background-position: -79px -671px; width: 50px; height: 26px;}
|
|
|
|
.homepagePostReplyInputContainer .ke-outline {border: none;}
|
|
|
|
.homepagePostReplyInputContainer .ke-inline-block {display: none;}
|
|
|
|
.homepagePostReplyInputContainer .ke-container {float: left;}
|
|
|
|
</style>
|
2015-11-05 17:57:07 +08:00
|
|
|
<div class="homepageRightBanner">
|
|
|
|
<div class="NewsBannerName">最新动态</div>
|
2015-11-13 15:02:12 +08:00
|
|
|
<!-- <ul class="resourcesSelect">
|
2015-11-05 17:57:07 +08:00
|
|
|
<li class="resourcesSelected"><a href="javascript:void(0);" class="resourcesIcon"></a>
|
|
|
|
<ul class="resourcesType">
|
|
|
|
<li class="mt-4"><a href="javascript:void(0);" class="homepagePostTypeAll postTypeGrey">全部动态</a></li>
|
|
|
|
<li class="mt-4"><a href="/users/8523/user_activities?type=current_user" class="homepagePostTypeMine postTypeGrey">我的动态</a> </li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2015-11-13 15:02:12 +08:00
|
|
|
</ul>-->
|
2015-11-05 17:57:07 +08:00
|
|
|
</div>
|
2015-11-13 15:02:12 +08:00
|
|
|
|
|
|
|
<% if !@organization.home_id.nil? and OrgDocumentComment.where("id = ?", @organization.home_id).count > 0 %>
|
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
init_activity_KindEditor_data(<%= @organization.home_id%>, null, "87%");
|
|
|
|
});
|
|
|
|
</script>
|
2015-11-13 20:14:02 +08:00
|
|
|
<p id="organization_document_<%= @organization.home_id %>">
|
2015-11-13 15:02:12 +08:00
|
|
|
<%= render :partial => 'show_org_document', :locals => {:document => OrgDocumentComment.find(@organization.home_id), :home_id => @organization.home_id} %>
|
2015-11-13 20:14:02 +08:00
|
|
|
</p>
|
2015-11-13 15:02:12 +08:00
|
|
|
<% end %>
|
|
|
|
|
2015-11-05 17:57:07 +08:00
|
|
|
<% unless @activities.nil? %>
|
|
|
|
<% @activities.each do |act| %>
|
|
|
|
<% if act.org_act_type == 'CreateOrganization' %>
|
|
|
|
<div class="resources mt10">
|
|
|
|
<div class="homepagePostBrief">
|
|
|
|
<div class="homepagePostPortrait">
|
|
|
|
<a href="javascript:void(0);"><%= image_tag(url_to_avatar(User.find(act.user_id)), :width => "45", :height => "45") %></a>
|
|
|
|
</div>
|
|
|
|
<div class="homepagePostDes">
|
|
|
|
<div class="homepagePostTo"><%= link_to User.find(act.user_id), user_path(act.user_id) %> 创建了 <a href="<%= organization_path(@organization)%>" class="newsBlue ml10"><%= Organization.find(act.org_act_id).name %>
|
|
|
|
| 组织</a></div>
|
|
|
|
<div class="homepagePostDate"> 创建时间:<%= format_activity_day(act.created_at) %> <%= format_time(act.created_at, false) %> </div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2015-11-12 09:32:00 +08:00
|
|
|
<% if act.org_act_type == 'OrgDocumentComment' %>
|
2015-11-12 14:55:31 +08:00
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
init_activity_KindEditor_data(<%= act.org_act.id%>, null, "87%");
|
|
|
|
});
|
|
|
|
</script>
|
2015-11-13 20:14:02 +08:00
|
|
|
<p id="organization_document_<%= act.org_act.id %>" style="mt10">
|
2015-11-13 15:02:12 +08:00
|
|
|
<%= render :partial => 'show_org_document', :locals => {:document => act.org_act} %>
|
2015-11-13 20:14:02 +08:00
|
|
|
</p>
|
2015-11-12 09:32:00 +08:00
|
|
|
<% end %>
|
2015-11-05 17:57:07 +08:00
|
|
|
<% end %>
|
|
|
|
<ul class="wlist" style=" border:none; padding-top: 15px;">
|
|
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|