FIX 首页更新
This commit is contained in:
parent
393d85e587
commit
9b0c37a9bd
|
@ -8,6 +8,8 @@ class HomesController < ApplicationController
|
|||
@dynamic_news = DynamicNew.desc.limit(4)
|
||||
|
||||
@companies = WebFooterCompany.dedicators
|
||||
# @partners = WebFooterCompany.partners
|
||||
|
||||
@first_companies_group = Array(@companies.slice(0, 5))
|
||||
@second_companies_group = Array(@companies.slice(5, 8))
|
||||
@third_companies_group = Array(@companies.slice(13, 5))
|
||||
|
|
|
@ -6,11 +6,8 @@
|
|||
</ul>
|
||||
<div class="partner_lump active partnerSource">
|
||||
<ul class="inline">
|
||||
<a href="javascript:void(0)"><img src="/images/partner/main/p_1.png"></a>
|
||||
<a href="javascript:void(0)"><img src="/images/partner/main/p_2.png"></a>
|
||||
<a href="javascript:void(0)"><img src="/images/partner/main/p_3.png"></a>
|
||||
<a href="javascript:void(0)"><img src="/images/partner/main/p_4.png"></a>
|
||||
<a href="javascript:void(0)"><img src="/images/partner/main/p_5.png"></a>
|
||||
<% logger.info "===============> #{host_with_protocol}" %>
|
||||
<%= render partial: 'partners', locals: {partners: @partners} %>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="partner_lump">
|
||||
|
@ -47,4 +44,3 @@
|
|||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<%# <% partners.each do |partner| %>
|
||||
<%#= link_to image_tag(url_to_avatar(partner),:alt=> partner.name ), partner.url, :target => "_blank" %>
|
||||
<%# end %>
|
||||
|
||||
<a href="http://opengcc.org/"><img src="/images/partner/main/p_1.png"></a>
|
||||
<a href="https://www.ihub.org.cn/"><img src="/images/partner/main/p_2.png"></a>
|
||||
<a href="http://111.186.57.55/"><img src="/images/partner/main/p_3.png"></a>
|
||||
<a href="http://210.79.227.194/"><img src="/images/partner/main/p_4.png"></a>
|
||||
<a href="https://www.openi.org.cn/"><img src="/images/partner/main/p_5.png"></a>
|
|
@ -8,7 +8,8 @@
|
|||
<div>
|
||||
<p class="f20 color-grey3 mb20 trustieTabName">项目管理</p>
|
||||
<p class="f16 fontGrey4">项目进程管理应用于研发管理、任务分配、目标跟踪等让项目管理流程高效完成。</p>
|
||||
<a href="javascript:void(0)" class="trustieMore">查看详情</a>
|
||||
<a href="<%= host_with_protocol %>" class="trustieMore">查看详情</a>
|
||||
|
||||
</div>
|
||||
<div class="mt20">
|
||||
<i class="iconfont icon-projectx" style="font-size: 80px"></i>
|
||||
|
@ -18,7 +19,7 @@
|
|||
<div>
|
||||
<p class="f20 color-grey3 mb20 trustieTabName">代码托管</p>
|
||||
<p class="f16 fontGrey4">项目进程管理应用于研发管理、任务分配、目标跟踪等让项目管理流程高效完成。</p>
|
||||
<a href="javascript:void(0)" class="trustieMore">查看详情</a>
|
||||
<a href="<%= host_with_protocol %>" class="trustieMore">查看详情</a>
|
||||
</div>
|
||||
<div>
|
||||
<i class="iconfont icon-hostingx2"></i>
|
||||
|
@ -28,7 +29,7 @@
|
|||
<div>
|
||||
<p class="f20 color-grey3 mb20 trustieTabName">质量检测</p>
|
||||
<p class="f16 fontGrey4">基于Sonar的代码静态分析工具,及时发现代码中的潜在隐患,全面提升软件开发质量。</p>
|
||||
<a href="javascript:void(0)" class="trustieMore">查看详情</a>
|
||||
<a href="<%= host_with_protocol %>" class="trustieMore">查看详情</a>
|
||||
</div>
|
||||
<div>
|
||||
<i class="iconfont icon-detectionx"></i>
|
||||
|
@ -38,7 +39,7 @@
|
|||
<div>
|
||||
<p class="f20 color-grey3 mb20 trustieTabName">交流社区</p>
|
||||
<p class="f16 fontGrey4">为IT开发者营造活跃、开放的社区环境,提供即时通讯、资源分享、学习交流等社交化服务。</p>
|
||||
<a href="javascript:void(0)" class="trustieMore">查看详情</a>
|
||||
<a href="<%= host_with_protocol %>" class="trustieMore">查看详情</a>
|
||||
</div>
|
||||
<div>
|
||||
<i class="iconfont icon-communityx"></i>
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
<h1>Editing home</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @home %> |
|
||||
<%= link_to 'Back', homes_path %>
|
|
@ -1,5 +0,0 @@
|
|||
<h1>New home</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', homes_path %>
|
Loading…
Reference in New Issue