2013-08-01 10:33:49 +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">
|
|
|
|
<div id="wrapper3">
|
|
|
|
|
2013-09-30 09:42:13 +08:00
|
|
|
<% if session[:enterprise_college] == 2 %>
|
2013-09-29 19:46:59 +08:00
|
|
|
<%=render :partial => 'layouts/base_enterprise_header'%>
|
2013-09-30 09:42:13 +08:00
|
|
|
<% elsif session[:enterprise_college] == 1 %>
|
|
|
|
<%=render :partial => 'layouts/base_college_header'%>
|
|
|
|
<% else %>
|
|
|
|
<%=render :partial => 'layouts/base_header'%>
|
|
|
|
<% end %>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
2013-11-08 10:29:29 +08:00
|
|
|
<div id="main">
|
2013-11-04 21:39:45 +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-05 15:38:12 +08:00
|
|
|
<td style="width: 430px; color: #15bccf""><strong>当前位置 : </strong></td>
|
|
|
|
<td rowspan="2" width="250px">
|
2013-11-04 21:39:45 +08:00
|
|
|
<div class="project-search">
|
2013-11-04 21:55:47 +08:00
|
|
|
<%= form_tag(calls_path, :method => :get) do %>
|
2013-11-05 15:38:12 +08:00
|
|
|
<%= text_field_tag 'name', params[:name], :size => 20 %>
|
2013-11-04 21:39:45 +08:00
|
|
|
<%= hidden_field_tag 'reward_type', params[:reward_type] %>
|
2013-11-04 21:55:47 +08:00
|
|
|
<%= 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 21:55:47 +08:00
|
|
|
<% end %>
|
2013-11-04 21:39:45 +08:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-11-06 10:36:58 +08:00
|
|
|
<td style="padding-left: 8px"><a><%= link_to "http://forge.trustie.net/calls", :controller => 'bids', :action => 'index' %> </a></td>
|
|
|
|
<td ><%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_requirement_enterprise), :controller => 'bids', :action => 'index' %> >
|
|
|
|
<span><%=link_to @bid.name ,bid_path %></span></td>
|
2013-11-04 21:39:45 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- end -->
|
2013-08-01 10:33:49 +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-08-01 10:33:49 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<table>
|
|
|
|
<tr>
|
2013-08-13 20:54:29 +08:00
|
|
|
<td class="info_font" style=" word-wrap: break-word; word-break: break-all"><%= h @bid.name %></td>
|
2013-08-01 10:33:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-10-16 17:02:02 +08:00
|
|
|
<td align="center"> <%= watcher_link(@bid, User.current) %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="center"> <%= link_to(l(:label_fork_homework_new), fork_path(@bid)) %></td>
|
2013-08-01 10:33:49 +08:00
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table>
|
|
|
|
<tr>
|
2013-08-09 16:30:20 +08:00
|
|
|
<td><%= l(:label_investor) %><%= link_to(@user, user_path(@user))%></td>
|
2013-08-01 10:33:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-08-20 16:32:45 +08:00
|
|
|
<% if @bid.reward_type.nil? or @bid.reward_type == 1%>
|
2013-10-10 23:02:15 +08:00
|
|
|
<td><%= l(:label_bids_reward_method) %><span style="color: #ed8924; font-weight: bold"><%= l(:label_call_bonus) %> <%= l(:label_RMB_sign) %><%= @bid.budget%></span></td>
|
|
|
|
<% elsif @bid.reward_type == 2%>
|
|
|
|
<td><%= l(:label_bids_reward_method) %><%= @bid.budget%></td>
|
|
|
|
<% else %>
|
|
|
|
<td><%= l(:label_bids_reward_method) %><%= l(:label_bids_credit) %> <%= @bid.budget%> <%= l(:label_bids_credit_number) %></td>
|
|
|
|
<% end %>
|
2013-08-01 10:33:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-08-09 16:30:20 +08:00
|
|
|
<td><%= l(:label_investment_time_limit) %><%= @bid.deadline%></td>
|
2013-10-10 23:02:15 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-10-19 16:16:54 +08:00
|
|
|
<td><div style="color:#ed8924 ; font-size: 14px">被 <strong><%= link_to(Bid.where('parent_id = ?', @bid.id).count, show_course_path(@bid)) %></strong>
|
|
|
|
个高校课程引用为作业!</div></td>
|
2013-08-01 10:33:49 +08:00
|
|
|
</tr>
|
2013-10-19 09:35:14 +08:00
|
|
|
<tr>
|
2013-10-19 16:16:54 +08:00
|
|
|
<td><div style="color:#ed8924 ; font-size: 14px">有 <strong><%= link_to(count_bid_project, show_bid_project_path(@bid)) %></strong>
|
|
|
|
个项目正在实现该需求!</div></td>
|
2013-10-19 09:35:14 +08:00
|
|
|
</tr>
|
2013-10-19 16:16:54 +08:00
|
|
|
<td><div style="color: #ed8924; font-size: 14px">有 <strong><%= link_to(count_bid_user, show_bid_user_path(@bid)) %></strong>
|
|
|
|
个高校用户正在努力完成此需求!</div></td>
|
2013-10-19 09:35:14 +08:00
|
|
|
</tr>
|
2013-08-01 10:33:49 +08:00
|
|
|
</table>
|
|
|
|
<div>
|
2013-09-16 08:49:39 +08:00
|
|
|
<%= link_to l(:label_x_followers, :count => @bid.watcher_users.count)+"("+@bid.watcher_users.count.to_s+")", respond_path(@bid) %>
|
2013-09-12 10:41:15 +08:00
|
|
|
<%= link_to l(:label_bidding_project)+"("+@bid.biding_projects.count.to_s+")", project_for_bid_path(@bid) %>
|
2013-09-23 15:12:06 +08:00
|
|
|
<%= link_to l(:label_x_bids_responses, :count => @bid.commit)+"("+@bid.commit.to_s+")", respond_path(@bid)%>
|
2013-08-01 10:33:49 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-10-10 23:02:15 +08:00
|
|
|
|
2013-09-29 19:46:59 +08:00
|
|
|
<!--tags-->
|
2013-08-01 20:47:00 +08:00
|
|
|
<div class="user_fans">
|
|
|
|
<div class="font_title_left">
|
2013-08-09 16:30:20 +08:00
|
|
|
<strong><%= l(:label_tag) %></strong>
|
2013-09-29 19:46:59 +08:00
|
|
|
</div>
|
2013-09-30 09:42:13 +08:00
|
|
|
<div class="user_underline"></div>
|
2013-08-01 20:47:00 +08:00
|
|
|
<table style="font-family:微软雅黑">
|
2013-08-01 10:33:49 +08:00
|
|
|
<tr>
|
2013-08-01 20:47:00 +08:00
|
|
|
<td><!-- added by william -for tag -->
|
2013-08-12 20:18:10 +08:00
|
|
|
<%= render :partial => 'tags/tag', :locals => {:obj => @bid, :object_flag => "4"}%>
|
2013-08-01 20:47:00 +08:00
|
|
|
</td>
|
2013-08-01 10:33:49 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="user_fans">
|
|
|
|
<div class="font_title_left">
|
2013-09-16 08:49:39 +08:00
|
|
|
<strong><%= l(:label_x_followers, :count => @bid.watcher_users.count) %></strong>
|
2013-08-01 10:33:49 +08:00
|
|
|
</div>
|
2013-09-30 09:42:13 +08:00
|
|
|
<div class="user_underline"></div>
|
2013-08-01 10:33:49 +08:00
|
|
|
<div class="left_wf">
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td style="padding-top: 5px">
|
2013-08-20 20:33:35 +08:00
|
|
|
<% if @bid.watcher_users.size>0 %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% for user in @bid.watcher_users%>
|
2013-08-20 20:33:35 +08:00
|
|
|
|
2013-11-01 15:48:23 +08:00
|
|
|
<%= image_tag(url_to_avatar(user), :class => "avatar", :title => user.name ) %>
|
2013-08-20 20:33:35 +08:00
|
|
|
<% end %>
|
|
|
|
<% else %>
|
2013-08-20 21:25:02 +08:00
|
|
|
<p class="font_lighter"><%= l(:label_project_no_follow) %></p>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end%>
|
|
|
|
</td>
|
2013-08-13 20:46:04 +08:00
|
|
|
</tr>
|
2013-08-01 10:33:49 +08:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-09-29 19:46:59 +08:00
|
|
|
<!--fans-->
|
2013-08-01 10:33:49 +08:00
|
|
|
<div class="user_fans">
|
|
|
|
<div class="font_title_left">
|
2013-08-09 16:30:20 +08:00
|
|
|
<strong><%= l(:label_bidding_project) %></strong>
|
2013-08-01 10:33:49 +08:00
|
|
|
</div>
|
2013-09-30 09:42:13 +08:00
|
|
|
<div class="user_underline"></div>
|
2013-08-01 10:33:49 +08:00
|
|
|
<div class="left_wf">
|
|
|
|
<table>
|
|
|
|
<tr>
|
2013-08-01 20:47:00 +08:00
|
|
|
<td style="padding-top: 5px">
|
2013-08-20 20:33:35 +08:00
|
|
|
<% if @bid.projects.size>0 %>
|
|
|
|
<% for project in @bid.projects%>
|
2013-11-01 15:48:23 +08:00
|
|
|
<%= image_tag(url_to_avatar(project), :class => "avatar", :title => project.name) %>
|
2013-08-20 20:33:35 +08:00
|
|
|
<% end%>
|
|
|
|
<% else %>
|
2013-08-20 21:25:02 +08:00
|
|
|
<p class="font_lighter"><%= l(:label_no_bid_project) %></p>
|
2013-08-20 20:33:35 +08:00
|
|
|
<% end %>
|
|
|
|
</td>
|
2013-08-13 20:46:04 +08:00
|
|
|
</tr>
|
2013-08-01 10:33:49 +08:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-09-29 19:46:59 +08:00
|
|
|
|
2013-08-08 10:04:44 +08:00
|
|
|
|
2013-08-01 10:33:49 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- end -->
|
|
|
|
</div>
|
|
|
|
<div id="content">
|
|
|
|
<% if display_main_menu?(@bid) %>
|
2013-09-30 09:42:13 +08:00
|
|
|
<div class="tabs_new">
|
2013-08-01 10:33:49 +08:00
|
|
|
<%= render_menu :bid_menu %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2013-08-08 22:27:58 +08:00
|
|
|
|
2013-08-01 10:33:49 +08:00
|
|
|
<%= yield %>
|
|
|
|
<%= call_hook :view_layouts_base_content %>
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
</div>
|
2013-08-04 09:37:32 +08:00
|
|
|
<%=render :partial => 'layouts/base_footer'%>
|
2013-10-17 10:31:41 +08:00
|
|
|
<%= debug(params) if Rails.env.development? %>
|
2013-08-01 10:33:49 +08:00
|
|
|
</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>
|