From dc4f927c3992373ddc9e03ebdddeaccd8ac2ea75 Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 2 Jun 2016 21:01:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=8F=B3=E4=BA=8C=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../organizations/_org_custom_right2.html.erb | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/app/views/organizations/_org_custom_right2.html.erb b/app/views/organizations/_org_custom_right2.html.erb index 34e3682f6..7bb2cbf93 100644 --- a/app/views/organizations/_org_custom_right2.html.erb +++ b/app/views/organizations/_org_custom_right2.html.erb @@ -1,13 +1,22 @@
-

热点项目更多>

- -
\ No newline at end of file +

热点项目

+ <% if containers.blank? %> +

该模块暂时没有相关内容

+ <% else %> + <% container = cotainers.first %> +
  • + <%= link_to "#{container.name}".html_safe, project_path(container), :class => "por_hidden_w205 fl", :title => container.name, :target => "_blank" %> +

    活跃度<%= static_project_score(@project.project_score) %>

    +
    + <%=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"} %> +
  • + + <% cotainers[1..4].each do |container| %> +
  • + <%= link_to "#{container.name}".html_safe, project_path(container), :class => "por_hidden_w205 fl", :title => container.name, :target => "_blank" %> +

    活跃度<%= static_project_score(@project.project_score) %>

    +
    +
  • + <% end %> + <% end %> +