|
|
|
@ -21,20 +21,19 @@
|
|
|
|
|
<div id="wrapper3">
|
|
|
|
|
<%=render :partial => 'layouts/base_header'%>
|
|
|
|
|
<div id="main" class="">
|
|
|
|
|
|
|
|
|
|
<!-- added by bai -->
|
|
|
|
|
<div class="top-content">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="info_font" style="width: 240px; color: #15bccf"">创新竞赛社区</td>
|
|
|
|
|
<td style="width: 430px; color: #15bccf""><strong><%= l(:label_user_location) %> : </strong></td>
|
|
|
|
|
<td class="info_font" style="width: 240px; color: #15bccf">创新竞赛社区</td>
|
|
|
|
|
<td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
|
|
|
|
|
<td rowspan="2" width="250px">
|
|
|
|
|
<div class="project-search">
|
|
|
|
|
<%= form_tag(:controller => 'bids', :action => 'contest', :method => :get) do %>
|
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 20 %>
|
|
|
|
|
<%= hidden_field_tag 'reward_type', @bid.reward_type %>
|
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 20 %>
|
|
|
|
|
<%= hidden_field_tag 'reward_type', @bid.reward_type %>
|
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
@ -46,9 +45,7 @@
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- end -->
|
|
|
|
|
|
|
|
|
|
<div id="sidebar">
|
|
|
|
|
<div class="main_context">
|
|
|
|
|
<div class="spaceleft">
|
|
|
|
@ -71,17 +68,14 @@
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<!-- added by bai 增加了竞赛的配置 -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%if User.current.logged? %>
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<% if @bid.author.id == User.current.id %>
|
|
|
|
|
<%= link_to l(:label_contest_modify_settings), {:controller => 'bids', :action => 'settings', :id => @bid} %>
|
|
|
|
|
<%= link_to l(:label_contest_modify_settings), {:controller => 'bids', :action => 'settings', :id => @bid} %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- added by bai 增加参与人和参与项目的数量显示 -->
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<table width="240" border="0">
|
|
|
|
@ -98,7 +92,6 @@
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
|
|
|
|
|
<div class="inf_user_image">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
@ -112,20 +105,13 @@
|
|
|
|
|
<td><%= l(:label_limit_time) %> : <%= @bid.deadline%></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<div>
|
|
|
|
|
<%= link_to l(:label_x_followers, :count => @bid.watcher_users.count)+"("+@bid.watcher_users.count.to_s+")", respond_path(@bid) %>
|
|
|
|
|
<%= link_to l(:label_bidding_project)+"("+@bid.biding_projects.count.to_s+")", project_for_bid_path(@bid) %>
|
|
|
|
|
<%= link_to l(:label_x_bids_responses, :count => @bid.commit)+"("+@bid.commit.to_s+")", respond_path(@bid)%>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
|
|
|
|
|
<!--description-->
|
|
|
|
|
<div class="inf_user_context">
|
|
|
|
|
<div class="font_title_left">
|
|
|
|
|
<%= l(:label_project_overview) %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style="padding-bottom: 8px">
|
|
|
|
|
<% if @bid.description.size>0 %>
|
|
|
|
|
<div class="font_lighter_sidebar">
|
|
|
|
@ -145,7 +131,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
<!--tags-->
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<table style="font-family:微软雅黑">
|
|
|
|
|
<tr>
|
|
|
|
@ -154,24 +139,20 @@
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<div class="font_title_left">
|
|
|
|
|
<strong><%= l(:label_x_followers, :count => @bid.watcher_users.count) %></strong>
|
|
|
|
|
<% if show_more_fans?(@bid) %>
|
|
|
|
|
<span style="display:inline-block; font-size: 12px; float:right; margin-bottom: -4px;"><%= link_to l(:label_more), :controller => 'bids', :action => 'show_bid_user'%></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<div class="left_wf">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-top: 5px">
|
|
|
|
|
<% if @bid.watcher_users.size>0 && @bid.watcher_users.count<13%>
|
|
|
|
|
<% for user in @bid.watcher_users%>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(user), :class => "avatar", :title => user.name ), user_path(user), :class => "avatar" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<p class="font_lighter"><%= l(:label_project_no_follow) %></p>
|
|
|
|
|
<% end%>
|
|
|
|
|
<%= show_bid_fans_picture(@bid)%>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
@ -179,33 +160,24 @@
|
|
|
|
|
</div>
|
|
|
|
|
<!-- participate -->
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<div class="font_title_left">
|
|
|
|
|
<strong><%= l(:label_bidding_project) %></strong>
|
|
|
|
|
<span style="display:inline-block;font-size: 13px; float:right; margin-bottom: -4px;"><%= link_to "更多>>", :controller => 'bids', :action => 'show_project'%>
|
|
|
|
|
<strong><%= l(:label_bidding_project) %></strong>
|
|
|
|
|
<% if show_more_bid_project?(@bid) %>
|
|
|
|
|
<span style="display:inline-block; font-size: 12px; float:right; margin-bottom: -4px;"><%= link_to l(:label_more), :controller => 'bids', :action => 'show_project'%></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<div class="left_wf">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-top: 5px">
|
|
|
|
|
<% if @bid.projects.size<0%>
|
|
|
|
|
<p class="font_lighter"><%= l(:label_no_bid_project) %></p>
|
|
|
|
|
|
|
|
|
|
<%else%>
|
|
|
|
|
<% for project in objCut12(@bid.projects.where('is_public=1')) %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(project), :class => "avatar", :title => project.name), project_path(project), :class => "avatar" %>
|
|
|
|
|
<% end%>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|
<%= show_bid_project(@bid) %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
|
|
|
|
@ -215,9 +187,9 @@
|
|
|
|
|
<div class="font_title_left">
|
|
|
|
|
<strong><%= l(:label_x_join_in_contest, :count => @bid.join_in_contests.count) %></strong>
|
|
|
|
|
<% if show_more_participate?(@bid) %>
|
|
|
|
|
<div style="font-size: 11px; display: inline; float: right; margin-top: 5px; margin-right: 20px" >
|
|
|
|
|
<span style="font-size: 12px; display: inline; float: right;" >
|
|
|
|
|
<%= link_to l(:label_more), :controller => "bids", :action => "show_participator"%>
|
|
|
|
|
</div>
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="left_wf">
|
|
|
|
@ -228,8 +200,8 @@
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
|
<% if display_main_menu?(@bid) %>
|
|
|
|
|
<div class="tabs_new">
|
|
|
|
|