|
|
|
@ -120,17 +120,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--搜索框-->
|
|
|
|
|
<!-- <div class="align-right">
|
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 48 %>
|
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise" %>
|
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
|
|
<div style="width: 57%;margin: 10px auto;">
|
|
|
|
|
<%= form_tag( method: 'post') do %>
|
|
|
|
|
|
|
|
|
|
<%= form_tag({controller: 'contests', action: 'index'}, method: :get) do %>
|
|
|
|
|
<%= text_field_tag 'name', params[:name], placeholder:'请输入要搜索的关键字', name: "name", :class => 'blueinputbar', :style => 'width:400px;'%>
|
|
|
|
|
|
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise"%>
|
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise" , :name => nil%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class='font_lighter' style="display: inline-block; margin-top:3px;">竞赛相关内容搜索,如竞赛题目,参赛题目,参赛人名等。</div>
|
|
|
|
|
</div>
|
|
|
|
@ -180,7 +176,26 @@
|
|
|
|
|
</div>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject">
|
|
|
|
|
|
|
|
|
|
<h3 style="margin-left: 5px; color: color: (51, 119, 51);"><strong>最新参赛应用</strong></h3>
|
|
|
|
|
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", {:controller => 'bids', :action => 'contest', :project_type => 1, :host => Setting.contest_domain}, :target => "_blank" %></span>
|
|
|
|
|
<div class="d-p-projectlist-box">
|
|
|
|
|
<ul class="d-p-projectlist">
|
|
|
|
|
<% find_all_hot_contest.map do |contest| break if(contest == find_all_hot_contest[10]) %>
|
|
|
|
|
<li style="background-image:none;">
|
|
|
|
|
<p class="layout">
|
|
|
|
|
<span style = "background: url('/images/007.gif') no-repeat scroll ;background-position: left center;"><%= link_to( contest.name, respond_path(contest.id), :class => "d-g-blue d-p-project-name", :title => "#{contest.name}",
|
|
|
|
|
:style => "margin-left: 28px;", :target => "_blank") %></span>
|
|
|
|
|
</p>
|
|
|
|
|
<p class="layout-1" >
|
|
|
|
|
<%= content_tag "span", contest.description.truncate(50, omission: '...'), :class => "d-p-project-intro" , :title => contest.description %>
|
|
|
|
|
</p>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right" style="float: right; width: 48%; ">
|
|
|
|
|
<ul class="welcome-message-list">
|
|
|
|
|
<div class="forum-topic" style="height: 25px; width: 98%; margin-left: 2px;">
|
|
|
|
@ -211,48 +226,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="float: right;">
|
|
|
|
|
<h3 style="margin-left: 5px; color: color: (51, 119, 51);"><strong>热门竞赛</strong></h3>
|
|
|
|
|
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", {:controller => 'bids', :action => 'contest', :project_type => 1, :host => Setting.contest_domain}, :target => "_blank" %></span>
|
|
|
|
|
<div class="d-p-projectlist-box">
|
|
|
|
|
<ul class="d-p-projectlist">
|
|
|
|
|
<% find_all_hot_contest.map do |contest| break if(contest == find_all_hot_contest[5]) %>
|
|
|
|
|
<li style="background-image:none;">
|
|
|
|
|
<p class="layout">
|
|
|
|
|
<span style = "background: url('/images/007.gif') no-repeat scroll ;background-position: left center;"><%= link_to( contest.name, respond_path(contest.id), :class => "d-g-blue d-p-project-name", :title => "#{contest.name}",
|
|
|
|
|
:style => "margin-left: 28px;", :target => "_blank") %></span>
|
|
|
|
|
</p>
|
|
|
|
|
<p class="layout-1" >
|
|
|
|
|
<%= content_tag "span", contest.description.truncate(50, omission: '...'), :class => "d-p-project-intro" , :title => contest.description %>
|
|
|
|
|
</p>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
|
|
<!-- <div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="float: right;">
|
|
|
|
|
<h3 style="margin-left: 5px; color: color: (51, 119, 51);"><strong>热门众包</strong></h3>
|
|
|
|
|
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", {:controller => 'bids', :action => 'index'}, :target => "_blank" %></span>
|
|
|
|
|
<div class="d-p-projectlist-box">
|
|
|
|
|
<ul class="d-p-projectlist">
|
|
|
|
|
<% find_all_hot_bid.map do |bid| break if(bid == find_all_hot_bid[5]) %>
|
|
|
|
|
<li style="background-image:none;">
|
|
|
|
|
<p class="layout">
|
|
|
|
|
<span style = "background: url('/images/007.gif') no-repeat scroll ;background-position: left center;"><%= link_to( bid.name, respond_path(bid.id), :class => "d-g-blue d-p-project-name", :title => "#{bid.name}",
|
|
|
|
|
:style => "margin-left: 28px;", :target => "_blank") %></span>
|
|
|
|
|
</p>
|
|
|
|
|
<p class="layout-1" >
|
|
|
|
|
<%= content_tag "span", bid.description.truncate(50, omission: '...'), :class => "d-p-project-intro" , :title => bid.description %>
|
|
|
|
|
</p>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="clr">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|