2013-10-12 10:45:48 +08:00
|
|
|
|
<!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">
|
2013-11-04 22:09:03 +08:00
|
|
|
|
<div id="wrapper3">
|
|
|
|
|
<%=render :partial => 'layouts/base_header'%>
|
2013-10-12 10:45:48 +08:00
|
|
|
|
<div id="main" class="">
|
2013-11-04 21:39:45 +08:00
|
|
|
|
|
2013-11-04 21:52:01 +08:00
|
|
|
|
<!-- added by bai -->
|
2013-11-05 12:49:57 +08:00
|
|
|
|
<div class="top-content">
|
2013-11-04 21:39:45 +08:00
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
2013-11-05 12:49:57 +08:00
|
|
|
|
<td class="info_font" style="width: 240px; color: #15bccf"">创新竞赛社区</td>
|
2013-11-08 15:59:08 +08:00
|
|
|
|
<td style="width: 430px; color: #15bccf""><strong><%= l(:label_user_location) %> : </strong></td>
|
2013-11-05 15:38:12 +08:00
|
|
|
|
<td rowspan="2" width="250px">
|
2013-11-04 21:39:45 +08:00
|
|
|
|
<div class="project-search">
|
2013-11-04 22:09:03 +08:00
|
|
|
|
<%= form_tag(:controller => 'bids', :action => 'contest', :method => :get) do %>
|
2013-11-05 15:38:12 +08:00
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 20 %>
|
2013-11-04 22:09:03 +08:00
|
|
|
|
<%= hidden_field_tag 'reward_type', @bid.reward_type %>
|
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
2013-11-05 12:49:57 +08:00
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
2013-11-04 22:09:03 +08:00
|
|
|
|
<% end %>
|
2013-11-04 21:39:45 +08:00
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2013-11-06 10:31:20 +08:00
|
|
|
|
<td style="padding-left: 8px"><%=link_to "forge.trustie.net/contest", :controller => 'bids', :action => 'contest' %></td>
|
2013-11-06 11:14:42 +08:00
|
|
|
|
<td ><%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_contest_innovate), :controller => 'bids', :action => 'contest' %> >
|
|
|
|
|
<span><%= link_to @bid.name, bid_path %></span></td>
|
2013-11-04 21:39:45 +08:00
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- end -->
|
|
|
|
|
|
2013-10-12 10:45:48 +08:00
|
|
|
|
<div id="sidebar">
|
|
|
|
|
<div class="main_context">
|
|
|
|
|
<div class="spaceleft">
|
|
|
|
|
<div class="inf_user_image">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="left" valign="middle">
|
2013-11-01 15:48:23 +08:00
|
|
|
|
<%= image_tag(url_to_avatar(@user), :class => "avatar2") %>
|
2013-10-12 10:45:48 +08:00
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="info_font" style=" word-wrap: break-word; word-break: break-all"><%= h @bid.name %></td>
|
2013-11-19 15:15:54 +08:00
|
|
|
|
</tr>
|
2013-10-12 10:45:48 +08:00
|
|
|
|
<tr>
|
2013-11-19 15:15:54 +08:00
|
|
|
|
<td rowspan="2" width="250px">
|
2013-11-14 15:55:56 +08:00
|
|
|
|
<%= join_in_contest(@bid, User.current)%>
|
2013-11-19 15:15:54 +08:00
|
|
|
|
<%= watcher_link(@bid, User.current) %> <!-- <%= link_to("选为作业", fork_path(@bid)) %> --></td>
|
2013-10-12 10:45:48 +08:00
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2013-11-19 15:15:54 +08:00
|
|
|
|
<!-- added by bai 增加了竞赛的配置 -->
|
2013-10-12 10:45:48 +08:00
|
|
|
|
<table>
|
2013-11-19 15:15:54 +08:00
|
|
|
|
<tr><td style="padding-left: 130px">
|
|
|
|
|
<%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 %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2013-11-21 10:18:46 +08:00
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--parameter -->
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
|
|
|
|
|
<table width="240" border="0">
|
|
|
|
|
<tr align="center" width="80px">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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.count}", :controller => 'bids', :action => 'show_project' %></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="font_aram">
|
|
|
|
|
<td align="center" width="70px"> <%= l(:label_participator) %></td>
|
|
|
|
|
|
|
|
|
|
<td align="center" width="70px"> <%= l(:label_bidding_project) %></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="inf_user_image">
|
|
|
|
|
<table>
|
2013-10-12 10:45:48 +08:00
|
|
|
|
<tr>
|
2013-11-14 17:01:06 +08:00
|
|
|
|
<td><%= l(:lable_contest_user) %><%= link_to(@user.show_name, user_path(@user))%></td>
|
2013-10-12 10:45:48 +08:00
|
|
|
|
</tr>
|
2013-11-19 15:15:54 +08:00
|
|
|
|
<!-- end -->
|
2013-10-12 10:45:48 +08:00
|
|
|
|
<tr>
|
|
|
|
|
<td><%= l(:label_bids_reward_method) %><%= @bid.budget%></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<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>
|
2013-11-13 10:19:47 +08:00
|
|
|
|
<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">
|
|
|
|
|
|
|
|
|
|
<%= textilizable @bid.description %>
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<div class="font_lighter_sidebar">
|
|
|
|
|
<%= l(:label_course_description_no) %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="created_on_project">
|
|
|
|
|
<strong style="color: #068d9c"><%= l(:label_create_time) %>:</strong><%= format_time(@bid.created_on) %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
</div>
|
2013-10-12 10:45:48 +08:00
|
|
|
|
<!--tags-->
|
|
|
|
|
<div class="user_fans">
|
2013-11-13 10:19:47 +08:00
|
|
|
|
|
2013-10-12 10:45:48 +08:00
|
|
|
|
<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="font_title_left">
|
|
|
|
|
<strong><%= l(:label_x_followers, :count => @bid.watcher_users.count) %></strong>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<div class="left_wf">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-top: 5px">
|
2013-11-08 15:49:08 +08:00
|
|
|
|
<% if @bid.watcher_users.size>0 && @bid.watcher_users.count<13%>
|
2013-11-06 10:49:38 +08:00
|
|
|
|
<% 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 %>
|
2013-10-12 10:45:48 +08:00
|
|
|
|
<% else %>
|
2013-11-06 10:49:38 +08:00
|
|
|
|
<p class="font_lighter"><%= l(:label_project_no_follow) %></p>
|
2013-10-12 10:45:48 +08:00
|
|
|
|
<% end%>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-11-14 17:01:06 +08:00
|
|
|
|
<!-- participate -->
|
2013-10-12 10:45:48 +08:00
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<div class="font_title_left">
|
2013-11-08 17:19:57 +08:00
|
|
|
|
<strong><%= l(:label_bidding_project) %></strong>
|
|
|
|
|
<span style="font-size: 13px"><%= link_to "更多>>", :controller => 'bids', :action => 'show_project'%>
|
2013-10-12 10:45:48 +08:00
|
|
|
|
</div>
|
2013-11-08 17:19:57 +08:00
|
|
|
|
|
2013-10-12 10:45:48 +08:00
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<div class="left_wf">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-top: 5px">
|
2013-11-08 17:19:57 +08:00
|
|
|
|
<% if @bid.projects.size<0%>
|
|
|
|
|
<p class="font_lighter"><%= l(:label_no_bid_project) %></p>
|
|
|
|
|
|
|
|
|
|
<%else%>
|
|
|
|
|
<% for project in objCut12(@bid.projects)%>
|
2013-11-06 10:49:38 +08:00
|
|
|
|
<%= link_to image_tag(url_to_avatar(project), :class => "avatar", :title => project.name), project_path(project), :class => "avatar" %>
|
|
|
|
|
<% end%>
|
2013-10-12 10:45:48 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<!-- end -->
|
2013-11-14 17:01:06 +08:00
|
|
|
|
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<!--fans fq-->
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<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" >
|
|
|
|
|
<%= link_to l(:label_more), :controller => "bids", :action => "show_participator"%>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="left_wf">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-top: 5px"> <%= show_participate_picture(@bid) %> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2013-10-12 10:45:48 +08:00
|
|
|
|
</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;">
|
|
|
|
|
<span><%= l(:label_loading) %></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="ajax-modal" style="display:none;"></div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<%= call_hook :view_layouts_base_body_bottom %>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|