2014-09-15 10:58:14 +08:00
|
|
|
|
<%
|
|
|
|
|
@nav_dispaly_contest_label = 1
|
|
|
|
|
@nav_dispaly_store_all_label = 1
|
|
|
|
|
%>
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<title><%= h html_title %></title>
|
|
|
|
|
<meta name="description" content="<%= Redmine::Info.app_name %>" />
|
|
|
|
|
<meta name="keywords" content="issue,bug,tracker" />
|
|
|
|
|
<%= csrf_meta_tag %>
|
|
|
|
|
<%= favicon %>
|
|
|
|
|
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', :media => 'all' %>
|
|
|
|
|
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
|
|
|
|
|
<%= javascript_heads %>
|
|
|
|
|
<%= heads_for_theme %>
|
|
|
|
|
<%= call_hook :view_layouts_base_html_head %>
|
|
|
|
|
<!-- page specific tags -->
|
|
|
|
|
<%= yield :header_tags -%>
|
|
|
|
|
</head>
|
|
|
|
|
<body class="<%= h body_css_classes %>">
|
|
|
|
|
<div id="wrapper">
|
|
|
|
|
<div id="wrapper2">
|
|
|
|
|
<div id="wrapper3">
|
|
|
|
|
<%=render :partial => 'layouts/base_header'%>
|
|
|
|
|
<div id="main" class="">
|
|
|
|
|
<!-- added by bai -->
|
|
|
|
|
<div class="top-content">
|
2014-10-15 17:24:49 +08:00
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<td class="info_font" style="width: 240px;" rowspan="2">
|
|
|
|
|
<a href="http://<%= Setting.host_contest%>" style="color: #15bccf;">
|
|
|
|
|
<%=l(:label_contest_innovate_community)%>
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="width: 430px; color: #15bccf">
|
|
|
|
|
<strong>
|
|
|
|
|
<%= l(:label_user_location) %> :
|
|
|
|
|
</strong>
|
|
|
|
|
</td>
|
2014-10-15 17:24:49 +08:00
|
|
|
|
<td rowspan="2" width="250px">
|
|
|
|
|
<div class="project-search">
|
2015-01-08 16:16:59 +08:00
|
|
|
|
<%= form_tag({:controller => 'bids', :action => 'contest'}, :id => "contest_search_form",:method => :get) do %>
|
2014-10-15 17:24:49 +08:00
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 20 %>
|
|
|
|
|
<%= hidden_field_tag 'reward_type', @bid.reward_type %>
|
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
2015-01-08 16:16:59 +08:00
|
|
|
|
<a href="#" onclick="$('#contest_search_form').submit();" class="ButtonColor m3p10" style="float:left;padding-top: 3px; margin: 0px;padding-bottom:0px;" >
|
|
|
|
|
<%= l(:label_search)%>
|
|
|
|
|
</a>
|
|
|
|
|
<%#= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
2014-10-15 17:24:49 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<td >
|
|
|
|
|
<%=link_to l(:field_homepage), home_path %> >
|
|
|
|
|
<%= l(:label_contest_innovate)%> >
|
|
|
|
|
<span>
|
|
|
|
|
<%= link_to @bid.name, bid_path %>
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
2014-10-15 17:24:49 +08:00
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</div>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
<div id="sidebar">
|
|
|
|
|
<div class="main_context">
|
|
|
|
|
<div class="spaceleft">
|
|
|
|
|
<div class="inf_user_image">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="left" width="100px">
|
|
|
|
|
<%= image_tag(url_to_avatar(@user), :class => "avatar2") %>
|
2014-11-26 11:44:39 +08:00
|
|
|
|
</td>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
<td>
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="info_font" style=" word-wrap: break-word; word-break: break-all">
|
|
|
|
|
<%= h @bid.name %>
|
2014-10-15 17:24:49 +08:00
|
|
|
|
</td>
|
2014-11-26 11:44:39 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<% if User.current.login? %> <!--added by linchun-->
|
|
|
|
|
<tr colspan='3'>
|
|
|
|
|
<td valign="middle">
|
|
|
|
|
<span style="display:block; margin-left:20px;">
|
|
|
|
|
<%= join_in_contest(@bid, User.current)%>
|
|
|
|
|
</span>
|
|
|
|
|
<span style="display:block; margin-left:20px;">
|
|
|
|
|
<span class="icon-fav icon"></span>
|
|
|
|
|
<%= watcher_link(@bid, User.current) %>
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
|
|
|
|
</table>
|
|
|
|
|
<!-- added by bai 增加了竞赛的配置 -->
|
2014-10-15 17:24:49 +08:00
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<% if @bid.author.id == User.current.id %>
|
|
|
|
|
<%= link_to l(:label_contest_modify_settings), {:controller => 'bids', :action => 'settings', :id => @bid} %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</td>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- added by bai 增加参与人和参与项目的数量显示 -->
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<table width="240" border="0">
|
|
|
|
|
<tr align="center" width="80px">
|
2014-10-15 17:24:49 +08:00
|
|
|
|
<td class="font_index">
|
|
|
|
|
<%=link_to "#{@bid.join_in_contests.count}",:controller => "bids",
|
|
|
|
|
:action => "show_participator" %>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="font_index">
|
|
|
|
|
<%=link_to "#{@bid.projects.where('is_public=1').count}", :controller => 'bids',
|
|
|
|
|
:action => 'show_project' %>
|
|
|
|
|
</td>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
<tr class="font_aram">
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<td align="center" width="70px">
|
|
|
|
|
<%= l(:label_participator) %>
|
|
|
|
|
</td>
|
|
|
|
|
<td align="center" width="70px">
|
|
|
|
|
<%= l(:label_bidding_project) %>
|
|
|
|
|
</td>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
<div class="inf_user_image">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<td>
|
|
|
|
|
<%= l(:lable_contest_user) %>
|
|
|
|
|
<%= link_to(@user.name, user_path(@user))%>
|
|
|
|
|
</td>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<td>
|
|
|
|
|
<%= l(:label_bids_reward_method) %>
|
|
|
|
|
<%= @bid.budget%>
|
|
|
|
|
</td>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<td>
|
|
|
|
|
<%= l(:label_limit_time) %> :
|
|
|
|
|
<%= @bid.deadline%>
|
|
|
|
|
</td>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<!--description-->
|
|
|
|
|
<div class="inf_user_context">
|
|
|
|
|
<div class="font_title_left">
|
2015-03-11 17:23:38 +08:00
|
|
|
|
<%= l(:label_overview) %>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-bottom: 8px">
|
|
|
|
|
<% if @bid.description.size>0 %>
|
|
|
|
|
<div class="font_lighter_sidebar">
|
|
|
|
|
<%= textilizable @bid.description %>
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<div class="font_lighter_sidebar">
|
|
|
|
|
<%= l(:label_course_description_no) %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="created_on_project">
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<strong style="color: #068d9c">
|
|
|
|
|
<%= l(:label_create_time) %>:
|
|
|
|
|
</strong>
|
|
|
|
|
<%= format_time(@bid.created_on) %>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<!--tags-->
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<table style="font-family:'微软雅黑'">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><!-- added by william -for tag -->
|
|
|
|
|
<%= render :partial => 'tags/tag', :locals => {:obj => @bid, :object_flag => "4"}%>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<div class="font_title_left">
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<strong>
|
|
|
|
|
<%= l(:label_x_followers, :count => @bid.watcher_users.count) %>
|
|
|
|
|
</strong>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
<% if show_more_fans?(@bid) %>
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<span style="display:inline-block; font-size: 12px; float:right; margin-bottom: -4px;">
|
2015-03-19 17:21:11 +08:00
|
|
|
|
<%= link_to l(:button_more), :controller => 'bids', :action => 'show_bid_user'%>
|
2014-11-26 11:44:39 +08:00
|
|
|
|
</span>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="left_wf">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-top: 5px">
|
|
|
|
|
<%= show_bid_fans_picture(@bid)%>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- participate -->
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<div class="font_title_left">
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<strong>
|
|
|
|
|
<%= l(:label_bidding_project) %>
|
|
|
|
|
</strong>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
<% if show_more_bid_project?(@bid) %>
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<span style="display:inline-block; font-size: 12px; float:right; margin-bottom: -4px;">
|
2015-03-19 17:21:11 +08:00
|
|
|
|
<%= link_to l(:button_more), :controller => 'bids', :action => 'show_project'%>
|
2014-11-26 11:44:39 +08:00
|
|
|
|
</span>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="left_wf">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-top: 5px">
|
|
|
|
|
<%= show_bid_project(@bid) %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<!--fans fq-->
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<div class="font_title_left">
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<strong>
|
|
|
|
|
<%= l(:label_x_join_in_contest, :count => @bid.join_in_contests.count) %>
|
|
|
|
|
</strong>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
<% if show_more_participate?(@bid) %>
|
|
|
|
|
<span style="font-size: 12px; display: inline; float: right;" >
|
2015-03-19 17:21:11 +08:00
|
|
|
|
<%= link_to l(:button_more), :controller => "bids", :action => "show_participator"%>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="left_wf">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<td style="padding-top: 5px">
|
|
|
|
|
<%= show_participate_picture(@bid) %>
|
|
|
|
|
</td>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
|
<% if display_main_menu?(@bid) %>
|
|
|
|
|
<div class="tabs_new">
|
|
|
|
|
<%= render_menu :bid_menu %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<%= yield %>
|
|
|
|
|
<%= call_hook :view_layouts_base_content %>
|
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<%=render :partial => 'layouts/base_footer'%>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="ajax-indicator" style="display:none;">
|
2014-11-26 11:44:39 +08:00
|
|
|
|
<span>
|
|
|
|
|
<%= l(:label_loading) %>
|
|
|
|
|
</span>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div id="ajax-modal" style="display:none;"></div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<%= call_hook :view_layouts_base_body_bottom %>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|