右二优化
This commit is contained in:
parent
257165dbaf
commit
6fbad6d53d
|
@ -93,7 +93,7 @@ class OrganizationsController < ApplicationController
|
|||
end
|
||||
# 热门项目
|
||||
if @organization.org_subfields.where(:field_type => "Comppro", :hide => 0).count > 0
|
||||
@excellent_projects = Course.where(:is_public => true, :status => true, :hot => true)
|
||||
@excellent_projects = Project.where(:is_public => true, :status => true, :hot => true)
|
||||
end
|
||||
# 最新动态, 来自我关联的项目和课程
|
||||
if @organization.org_subfields.where(:field_type => "Compact", :hide => 0).count > 0
|
||||
|
|
|
@ -3,18 +3,18 @@
|
|||
<% if containers.blank? %>
|
||||
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||
<% else %>
|
||||
<% container = cotainers.first %>
|
||||
<% container = containers.first %>
|
||||
<li class="por_project_li">
|
||||
<%= link_to "<span class='post_icons_grey fl'></span>#{container.name}".html_safe, project_path(container), :class => "por_hidden_w205 fl", :title => container.name, :target => "_blank" %>
|
||||
<p class="fr por_time">活跃度<a class="ml5" ><%= static_project_score(@project.project_score) %></a></p>
|
||||
<p class="fr por_time">活跃度<a class="ml5" ><%= static_project_score(container.project_score) %></a></p>
|
||||
<div class="cl"></div>
|
||||
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => activity.id, :content=> activity.description, :maxheight => 20, :maxwordsnum => 70, :maxwidth => 0, :cl => "por_project_p"} %>
|
||||
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => container.id, :content=> container.description, :maxheight => 20, :maxwordsnum => 70, :maxwidth => 0, :cl => "por_project_p"} %>
|
||||
</li>
|
||||
|
||||
<% cotainers[1..4].each do |container| %>
|
||||
<% containers[1..4].each do |container| %>
|
||||
<li>
|
||||
<%= link_to "<span class='post_icons_grey fl'></span>#{container.name}".html_safe, project_path(container), :class => "por_hidden_w205 fl", :title => container.name, :target => "_blank" %>
|
||||
<p class="fr por_time">活跃度<a class="ml5" ><%= static_project_score(@project.project_score) %></a></p>
|
||||
<p class="fr por_time">活跃度<a class="ml5" ><%= static_project_score(container.project_score) %></a></p>
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue