|
|
|
@ -6,195 +6,161 @@
|
|
|
|
|
<h2 class="por_h2_index clear"><%= field.name %>
|
|
|
|
|
<%= render :partial => 'organizations/link_subfield_more', :locals => {:field => field} %>
|
|
|
|
|
</h2>
|
|
|
|
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
|
|
|
|
<% document = activity.org_act %>
|
|
|
|
|
<% org_subfield_id = params[:org_subfield_id] %>
|
|
|
|
|
<% flag = 2 %>
|
|
|
|
|
<% iamge_path = get_image_path_from_content(document.content) %>
|
|
|
|
|
<div class="por_post_left fl">
|
|
|
|
|
<div class="por_post_leftbar ">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-04.jpg", :width => "299", :height => "246"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "299", :height => "246"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => '_blank', :class => "por_post_title" %>
|
|
|
|
|
<p class="mt5 mb5">
|
|
|
|
|
<span class="por_time mr10"><%= time_from_now(document.created_at) %> </span>
|
|
|
|
|
<%= link_to document.creator, user_path(document.creator), :class => "por_hot_name", :target => "_blank" %>
|
|
|
|
|
</p>
|
|
|
|
|
<p class="por_post_txt ">
|
|
|
|
|
<%=render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id => document.id, :content=> document.content, :maxheight => 40, :maxwordsnum => 60} %>
|
|
|
|
|
本文选自阿本文选自阿里本文选自阿里本文选自阿里本文选自阿里本文选自阿里里巴巴前副总裁、首任美籍高管波特·埃里斯曼《阿里传》在这本书里,波特概括了他在阿里巴巴任职的8年中,学到的40堂课这40堂课简单明了地概括了马云的经营理念,以及阿里终成帝国的必</p>
|
|
|
|
|
</div>
|
|
|
|
|
<ul class="por_post_list">
|
|
|
|
|
<li><a href="javascript:void(0);" target="_blank" class=" por_hidden_w390"><span class="post_icons_grey fl"></span>谷歌、Facebook等超过8ook等超过80%ook等超过80%ook等超过80%0%的企业都为开源做贡献贡献贡</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fl">
|
|
|
|
|
<ul class="por_post_right por_post_list">
|
|
|
|
|
<li><a href="javascript:void(0);" target="_blank" class=" por_hidden_w270"><span class="post_icons_grey fl"></span>谷歌、Facebook等超过8ook等超过80%ook等超过80%ook等超过80%0%的企业都为开源做贡献贡献贡</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sn-index-resourcesbox">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-04.jpg", :width => "185", :height => "125"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<h3>
|
|
|
|
|
<%= link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => '_blank', :class => "resources-title sn-hidden" %>
|
|
|
|
|
</h3>
|
|
|
|
|
<div class="resources-tagbox">
|
|
|
|
|
<%=render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id => document.id, :content=> document.content, :maxheight=>54, :maxwordsnum => 28} %>
|
|
|
|
|
<%#= link_to document.content.to_s.html_safe, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => '_blank', :class => "resources-tag" %>
|
|
|
|
|
</div>
|
|
|
|
|
<%#= link_to "更多", org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :class => "more-btn", :target => "_blank" %>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<% else activity.container_type == 'OrgSubfield' %>
|
|
|
|
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
|
|
|
|
<% message = Message.find(activity.org_act_id) %>
|
|
|
|
|
<% if message.parent_id.nil? %>
|
|
|
|
|
<% content = message.content%>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% content = message.parent.content%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% iamge_path = get_image_path_from_content(content) %>
|
|
|
|
|
<% if message.board.org_subfield_id %>
|
|
|
|
|
<div class="por_post_left fl">
|
|
|
|
|
<div class="por_post_leftbar ">
|
|
|
|
|
<a href="javascript:void(0);" target="_blank" class=""><img src="/images/org_custom/por_img.jpg" width="299" height="246" alt=""/></a>
|
|
|
|
|
<a href="javascript:void(0);" target="_blank" class="por_post_title ">阿里前副总裁里前副总裁:里前副总裁:里前副总裁::阿里巴巴给我上的10</a>
|
|
|
|
|
<p class="mt5 mb5"><span class="por_time mr10">1分钟前 </span><a href="javascript:void(0);" target="_blank" class=" por_hot_name"> 窦豆</a></p>
|
|
|
|
|
<p class="por_post_txt ">本文选自阿本文选自阿里本文选自阿里本文选自阿里本文选自阿里本文选自阿里里巴巴前副总裁、首任美籍高管波特·埃里斯曼《阿里传》在这本书里,波特概括了他在阿里巴巴任职的8年中,学到的40堂课这40堂课简单明了地概括了马云的经营理念,以及阿里终成帝国的必</p>
|
|
|
|
|
</div>
|
|
|
|
|
<ul class="por_post_list">
|
|
|
|
|
<li><a href="javascript:void(0);" target="_blank" class=" por_hidden_w390"><span class="post_icons_grey fl"></span>谷歌、Facebook等超过8ook等超过80%ook等超过80%ook等超过80%0%的企业都为开源做贡献贡献贡</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="por_post_left fl">
|
|
|
|
|
<div class="por_post_leftbar ">
|
|
|
|
|
<% activity = acts.first %>
|
|
|
|
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
|
|
|
|
<% document = activity.org_act %>
|
|
|
|
|
<% if get_image_path_from_content(acts.first.org_act.content).nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-04.jpg", :width => "299", :height => "246"), org_document_comment_path(:id => acts.first.org_act.id, :organization_id => acts.first.org_act.organization.id), :target => "_blank" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{get_image_path_from_content(acts.first.org_act.content)}", :width => "299", :height => "246"), org_document_comment_path(:id => acts.first.org_act.id, :organization_id => acts.first.org_act.organization.id), :target => "_blank" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= link_to acts.first.org_act.title, org_document_comment_path(:id => acts.first.org_act.id, :organization_id => acts.first.org_act.organization.id), :target => '_blank', :class => "por_post_title" %>
|
|
|
|
|
<p class="mt5 mb5">
|
|
|
|
|
<span class="por_time mr10"><%= time_from_now(acts.first.org_act.created_at) %> </span>
|
|
|
|
|
<%= link_to acts.first.org_act.creator, user_path(acts.first.org_act.creator), :class => "por_hot_name", :target => "_blank" %>
|
|
|
|
|
</p>
|
|
|
|
|
<div class="por_post_txt">
|
|
|
|
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => acts.first.org_act.id, :content=> acts.first.org_act.content, :maxheight => 40, :maxwordsnum => 60, :maxwidth => 0} %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fl">
|
|
|
|
|
<ul class="por_post_right por_post_list">
|
|
|
|
|
<li><a href="javascript:void(0);" target="_blank" class=" por_hidden_w270"><span class="post_icons_grey fl"></span>谷歌、Facebook等超过8ook等超过80%ook等超过80%ook等超过80%0%的企业都为开源做贡献贡献贡</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sn-index-resourcesbox">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-04.jpg", :width => "185", :height => "125"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<h3>
|
|
|
|
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
|
|
|
|
<%= link_to message.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank', :class => "resources-title sn-hidden" %>
|
|
|
|
|
<% else activity.container_type == 'OrgSubfield' %>
|
|
|
|
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
|
|
|
|
<% message = Message.find(activity.org_act_id) %>
|
|
|
|
|
<% content = message.parent_id.nil? ? message.content : message.parent.content %>
|
|
|
|
|
<% iamge_path = get_image_path_from_content(content) %>
|
|
|
|
|
<% if message.board.org_subfield_id %>
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-04.jpg", :width => "299", :height => "246"), board_message_url_in_org(message.board.id,message.id), :target => "_blank" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "299", :height => "246"), board_message_url_in_org(message.board.id,message.id), :target => "_blank" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
|
|
|
|
<%= link_to message.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank', :class => "por_post_title" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank', :class => "por_post_title" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<p class="mt5 mb5">
|
|
|
|
|
<span class="por_time mr10"><%= time_from_now(message.created_on) %> </span>
|
|
|
|
|
<%= link_to message.author, user_path(message.author), :class => "por_hot_name", :target => "_blank" %>
|
|
|
|
|
</p>
|
|
|
|
|
<div class="por_post_txt">
|
|
|
|
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> message.content, :maxheight => 40, :maxwordsnum => 60, :maxwidth => 0} %>
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank', :class => "resources-title sn-hidden" %>
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-04.jpg", :width => "299", :height => "246"), board_message_path(message.board, message), :target => "_blank" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "299", :height => "246"), board_message_path(message.board, message), :target => "_blank" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
|
|
|
|
<%= link_to message.subject.to_s.html_safe, board_message_path(message.board, message), :target => '_blank', :class => "por_post_title" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_path(message.board, message), :target => '_blank', :class => "por_post_title" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<p class="mt5 mb5">
|
|
|
|
|
<span class="por_time mr10"><%= time_from_now(message.created_on) %> </span>
|
|
|
|
|
<%= link_to message.author, user_path(message.author), :class => "por_hot_name", :target => "_blank" %>
|
|
|
|
|
</p>
|
|
|
|
|
<div class="por_post_txt">
|
|
|
|
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> message.content, :maxheight => 40, :maxwordsnum => 60, :maxwidth => 0} %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</h3>
|
|
|
|
|
<div class="resources-tagbox">
|
|
|
|
|
<%= render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id => message.id, :content=> content, :maxheight=>54, :maxwordsnum => 28} %>
|
|
|
|
|
<%#= link_to content.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "resources-tag" %>
|
|
|
|
|
</div>
|
|
|
|
|
<%#= link_to "更多", board_message_url_in_org(message.board.id,message.id), :class => "more-btn", :target => "_blank" %>
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<div class="por_post_left fl">
|
|
|
|
|
<div class="por_post_leftbar ">
|
|
|
|
|
<a href="javascript:void(0);" target="_blank" class=""><img src="/images/org_custom/por_img.jpg" width="299" height="246" alt=""/></a>
|
|
|
|
|
<a href="javascript:void(0);" target="_blank" class="por_post_title ">阿里前副总裁里前副总裁:里前副总裁:里前副总裁::阿里巴巴给我上的10</a>
|
|
|
|
|
<p class="mt5 mb5"><span class="por_time mr10">1分钟前 </span><a href="javascript:void(0);" target="_blank" class=" por_hot_name"> 窦豆</a></p>
|
|
|
|
|
<p class="por_post_txt ">本文选自阿本文选自阿里本文选自阿里本文选自阿里本文选自阿里本文选自阿里里巴巴前副总裁、首任美籍高管波特·埃里斯曼《阿里传》在这本书里,波特概括了他在阿里巴巴任职的8年中,学到的40堂课这40堂课简单明了地概括了马云的经营理念,以及阿里终成帝国的必</p>
|
|
|
|
|
</div>
|
|
|
|
|
<ul class="por_post_list">
|
|
|
|
|
<li><a href="javascript:void(0);" target="_blank" class=" por_hidden_w390"><span class="post_icons_grey fl"></span>谷歌、Facebook等超过8ook等超过80%ook等超过80%ook等超过80%0%的企业都为开源做贡献贡献贡</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fl">
|
|
|
|
|
<ul class="por_post_right por_post_list">
|
|
|
|
|
<li><a href="javascript:void(0);" target="_blank" class=" por_hidden_w270"><span class="post_icons_grey fl"></span>谷歌、Facebook等超过8ook等超过80%ook等超过80%ook等超过80%0%的企业都为开源做贡献贡献贡</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sn-index-resourcesbox">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-04.jpg", :width => "185", :height => "125"), board_message_path(message.board,activity), :target => "_blank", :class =>"sn-resourcesimg" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), board_message_path(message.board,activity), :target => "_blank", :class =>"sn-resourcesimg" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<h3>
|
|
|
|
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
|
|
|
|
<%= link_to message.subject.to_s.html_safe, board_message_path(message.board,message), :target => '_blank', :class => "resources-title sn-hidden" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
|
|
|
|
<% news = News.find(activity.org_act_id) %>
|
|
|
|
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-04.jpg", :width => "299", :height => "246"), news_path(news), :target => "_blank" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_path(message.board,activity), :target => '_blank', :class => "resources-title sn-hidden" %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "299", :height => "246"), news_path(news), :target => "_blank" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</h3>
|
|
|
|
|
<div class="resources-tagbox">
|
|
|
|
|
<%= render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id => message.id, :content=> content, :maxheight=>54, :maxwordsnum => 28} %>
|
|
|
|
|
<%#= link_to content.to_s.html_safe, board_message_path(message.board,activity), :target => '_blank', :class => "resources-tag" %>
|
|
|
|
|
</div>
|
|
|
|
|
<%#= link_to "更多", board_message_path(message.board,activity), :class => "more-btn", :target => "_blank" %>
|
|
|
|
|
</div>
|
|
|
|
|
<%= link_to news.title.to_s, news_path(news), :target => '_blank', :class => "por_post_title" %>
|
|
|
|
|
<p class="mt5 mb5">
|
|
|
|
|
<span class="por_time mr10"><%= time_from_now(news.created_on) %> </span>
|
|
|
|
|
<%= link_to news.author, user_path(news.author), :class => "por_hot_name", :target => "_blank" %>
|
|
|
|
|
</p>
|
|
|
|
|
<div class="por_post_txt">
|
|
|
|
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => news.id, :content=> news.description, :maxheight => 40, :maxwordsnum => 60, :maxwidth => 0} %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% unless acts[1..5].nil? %>
|
|
|
|
|
<% acts[1..5].each do |activity| %>
|
|
|
|
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
|
|
|
|
<% document = activity.org_act %>
|
|
|
|
|
<ul class="por_post_list">
|
|
|
|
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{document.title}".html_safe, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), class: 'por_hidden_w390', :target => "_blank" %></li>
|
|
|
|
|
</ul>
|
|
|
|
|
<% else activity.container_type == 'OrgSubfield' %>
|
|
|
|
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
|
|
|
|
<% message = Message.find(activity.org_act_id) %>
|
|
|
|
|
<% if message.board.org_subfield_id %>
|
|
|
|
|
<ul class="por_post_list">
|
|
|
|
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
|
|
|
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.subject}".html_safe, board_message_url_in_org(message.board.id, message.id), class: 'por_hidden_w390', :target => "_blank" %></li>
|
|
|
|
|
<% else %>
|
|
|
|
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.parent.subject}".html_safe, board_message_url_in_org(message.board.id, message.id), class: 'por_hidden_w390', :target => "_blank" %></li>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
<% else %>
|
|
|
|
|
<ul class="por_post_list">
|
|
|
|
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
|
|
|
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.subject}".html_safe, board_message_path(message.board,message), class: 'por_hidden_w390', :target => "_blank" %></li>
|
|
|
|
|
<% else %>
|
|
|
|
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.parent.subject}".html_safe, board_message_path(message.board, message), class: 'por_hidden_w390', :target => "_blank" %></li>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
|
|
|
|
<% news = News.find(activity.org_act_id) %>
|
|
|
|
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
|
|
|
|
<ul class="por_post_list">
|
|
|
|
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{news.title}".html_safe, news_path(news), class: 'por_hidden_w390', :target => "_blank" %></li>
|
|
|
|
|
</ul>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
|
|
|
|
<% news = News.find(activity.org_act_id) %>
|
|
|
|
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
|
|
|
|
<div class="por_post_left fl">
|
|
|
|
|
<div class="por_post_leftbar ">
|
|
|
|
|
<a href="javascript:void(0);" target="_blank" class=""><img src="/images/org_custom/por_img.jpg" width="299" height="246" alt=""/></a>
|
|
|
|
|
<a href="javascript:void(0);" target="_blank" class="por_post_title ">阿里前副总裁里前副总裁:里前副总裁:里前副总裁::阿里巴巴给我上的10</a>
|
|
|
|
|
<p class="mt5 mb5"><span class="por_time mr10">1分钟前 </span><a href="javascript:void(0);" target="_blank" class=" por_hot_name"> 窦豆</a></p>
|
|
|
|
|
<p class="por_post_txt ">本文选自阿本文选自阿里本文选自阿里本文选自阿里本文选自阿里本文选自阿里里巴巴前副总裁、首任美籍高管波特·埃里斯曼《阿里传》在这本书里,波特概括了他在阿里巴巴任职的8年中,学到的40堂课这40堂课简单明了地概括了马云的经营理念,以及阿里终成帝国的必</p>
|
|
|
|
|
</div>
|
|
|
|
|
<ul class="por_post_list">
|
|
|
|
|
<li><a href="javascript:void(0);" target="_blank" class=" por_hidden_w390"><span class="post_icons_grey fl"></span>谷歌、Facebook等超过8ook等超过80%ook等超过80%ook等超过80%0%的企业都为开源做贡献贡献贡</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fl">
|
|
|
|
|
<ul class="por_post_right por_post_list">
|
|
|
|
|
<li><a href="javascript:void(0);" target="_blank" class=" por_hidden_w270"><span class="post_icons_grey fl"></span>谷歌、Facebook等超过8ook等超过80%ook等超过80%ook等超过80%0%的企业都为开源做贡献贡献贡</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sn-index-resourcesbox">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-04.jpg", :width => "185", :height => "125"), news_path(news), :target => "_blank", :class =>"sn-resourcesimg" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), news_path(news), :target => "_blank", :class =>"sn-resourcesimg" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<h3>
|
|
|
|
|
<%= link_to news.title.to_s, news_path(news), :target => '_blank', :class => "resources-title sn-hidden" %>
|
|
|
|
|
</h3>
|
|
|
|
|
<div class="resources-tagbox">
|
|
|
|
|
<%#= link_to news.description.to_s.html_safe, news_path(news), :target => '_blank', :class => "resources-tag" %>
|
|
|
|
|
<%= render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id => news.id, :content=> news.description, :maxheight=>54, :maxwordsnum => 28, :maxwordsnum => 28} %>
|
|
|
|
|
</div>
|
|
|
|
|
<%#= link_to "更多", news_path(news), :class => "more-btn", :target => "_blank" %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% unless acts[6..19].nil? %>
|
|
|
|
|
<div class="fl">
|
|
|
|
|
<ul class="por_post_right por_post_list">
|
|
|
|
|
<% acts[6..19].each do |activity| %>
|
|
|
|
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
|
|
|
|
<% document = activity.org_act %>
|
|
|
|
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{document.title}".html_safe, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), class: 'por_hidden_w270', :target => "_blank" %></li>
|
|
|
|
|
<% else activity.container_type == 'OrgSubfield' %>
|
|
|
|
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
|
|
|
|
<% message = Message.find(activity.org_act_id) %>
|
|
|
|
|
<% if message.board.org_subfield_id %>
|
|
|
|
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
|
|
|
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.subject}".html_safe, board_message_url_in_org(message.board.id, message.id), class: 'por_hidden_w270', :target => "_blank" %></li>
|
|
|
|
|
<% else %>
|
|
|
|
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.parent.subject}".html_safe, board_message_url_in_org(message.board.id, message.id), class: 'por_hidden_w270', :target => "_blank" %></li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
|
|
|
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.subject}".html_safe, board_message_path(message.board,message), class: 'por_hidden_w270', :target => "_blank" %></li>
|
|
|
|
|
<% else %>
|
|
|
|
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.parent.subject}".html_safe, board_message_path(message.board, message), class: 'por_hidden_w270', :target => "_blank" %></li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
|
|
|
|
<% news = News.find(activity.org_act_id) %>
|
|
|
|
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
|
|
|
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{news.title}".html_safe, news_path(news), class: 'por_hidden_w270', :target => "_blank" %></li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div><!--por_post end-->
|