修改页面代码
This commit is contained in:
parent
c2ac26ed61
commit
851ef240c1
|
@ -34,27 +34,42 @@
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<!-- added by bai -->
|
<!-- added by bai -->
|
||||||
<div class="top-content">
|
<div class="top-content">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="info_font" style="width: 240px; color: #15bccf"">企业众包社区</td>
|
<td class="info_font" style="width: 240px; color: #15bccf">
|
||||||
<td style="width: 430px; color: #15bccf""><strong><%= l(:label_user_location) %> : </strong></td>
|
企业众包社区
|
||||||
<td rowspan="2" width="250px">
|
</td>
|
||||||
<div class="project-search">
|
<td style="width: 430px; color: #15bccf">
|
||||||
<%= form_tag(calls_path, :method => :get) do %>
|
<strong>
|
||||||
<%= text_field_tag 'name', params[:name], :size => 20 %>
|
<%= l(:label_user_location) %> :
|
||||||
<%= hidden_field_tag 'reward_type', params[:reward_type] %>
|
</strong
|
||||||
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
></td>
|
||||||
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
<td rowspan="2" width="250px">
|
||||||
<% end %>
|
<div class="project-search">
|
||||||
</div>
|
<%= form_tag(calls_path, :method => :get) do %>
|
||||||
</td>
|
<%= text_field_tag 'name', params[:name], :size => 20 %>
|
||||||
</tr>
|
<%= hidden_field_tag 'reward_type', params[:reward_type] %>
|
||||||
<tr>
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
||||||
<td style="padding-left: 8px"><a><%= link_to request.host()+"/calls", :controller => 'bids', :action => 'index' %> </a></td>
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
||||||
<td ><%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_requirement_enterprise), :controller => 'bids', :action => 'index' %> >
|
<% end %>
|
||||||
<span><%=link_to @bid.name ,bid_path %></span></td>
|
</div>
|
||||||
</tr>
|
</td>
|
||||||
</table>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding-left: 8px">
|
||||||
|
<a>
|
||||||
|
|
||||||
|
</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>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
|
@ -66,50 +81,98 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left" valign="middle">
|
<td align="left" valign="middle">
|
||||||
<%= image_tag(url_to_avatar(@user), :class => "avatar2") %>
|
<%= image_tag(url_to_avatar(@user), :class => "avatar2") %>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="info_font" style=" word-wrap: break-word; word-break: break-all"><%= link_to @bid.name,bid_path %></td>
|
<td class="info_font" style=" word-wrap: break-word; word-break: break-all">
|
||||||
</tr>
|
<%= link_to @bid.name,bid_path %>
|
||||||
<% if User.current.login? %>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td align="center"> <%= link_to(l(:label_fork_homework_new), fork_path(@bid)) %></td>
|
<% if User.current.login? %>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td align="center">
|
||||||
<td align="center"> <span style="margin-right:10px;"><span class="icon-fav icon"></span><%= watcher_link(@bid, User.current) %></span></td>
|
<%= link_to(l(:label_fork_homework_new), fork_path(@bid)) %>
|
||||||
</tr>
|
</td>
|
||||||
<% end %>
|
</tr>
|
||||||
</table></td>
|
<tr>
|
||||||
|
<td align="center">
|
||||||
|
<span style="margin-right:10px;">
|
||||||
|
<span class="icon-fav icon"></span>
|
||||||
|
<%= watcher_link(@bid, User.current) %>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= l(:label_investor) %><%= link_to(@user, user_path(@user))%></td>
|
<td>
|
||||||
|
<%= l(:label_investor) %>
|
||||||
|
<%= link_to(@user, user_path(@user))%>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<% if @bid.reward_type.nil? or @bid.reward_type == 1%>
|
<% if @bid.reward_type.nil? or @bid.reward_type == 1%>
|
||||||
<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>
|
<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%>
|
<% elsif @bid.reward_type == 2%>
|
||||||
<td><%= l(:label_bids_reward_method) %><%= @bid.budget%></td>
|
<td>
|
||||||
<% else %>
|
<%= l(:label_bids_reward_method) %>
|
||||||
<td><%= l(:label_bids_reward_method) %><%= l(:label_bids_credit) %> <%= @bid.budget%> <%= l(:label_bids_credit_number) %></td>
|
<%= @bid.budget%>
|
||||||
|
</td>
|
||||||
|
<% else %>
|
||||||
|
<td>
|
||||||
|
<%= l(:label_bids_reward_method) %>
|
||||||
|
<%= l(:label_bids_credit) %>
|
||||||
|
<%= @bid.budget%>
|
||||||
|
<%= l(:label_bids_credit_number) %>
|
||||||
|
</td>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= l(:label_investment_time_limit) %><%= @bid.deadline%></td>
|
<td>
|
||||||
|
<%= l(:label_investment_time_limit) %>
|
||||||
|
<%= @bid.deadline%>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><div style="color:#ed8924 ; font-size: 14px">被 <strong><%= link_to(Bid.where('parent_id = ?', @bid.id).count, show_course_path(@bid)) %></strong>
|
<td>
|
||||||
个高校课程引用为作业!</div></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>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><div style="color:#ed8924 ; font-size: 14px">有 <strong><%= link_to(count_bid_project, show_bid_project_path(@bid)) %></strong>
|
<td>
|
||||||
个项目正在实现该需求!</div></td>
|
<div style="color:#ed8924 ; font-size: 14px">
|
||||||
</tr>
|
有
|
||||||
<td><div style="color: #ed8924; font-size: 14px">有 <strong><%= link_to(count_bid_user, show_bid_user_path(@bid)) %></strong>
|
<strong><%= link_to(count_bid_project, show_bid_project_path(@bid)) %></strong>
|
||||||
个高校用户正在努力完成此需求!</div></td>
|
个项目正在实现该需求!
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div style="color: #ed8924; font-size: 14px">
|
||||||
|
有
|
||||||
|
<strong><%= link_to(count_bid_user, show_bid_user_path(@bid)) %></strong>
|
||||||
|
个高校用户正在努力完成此需求!
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div>
|
<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_x_followers, :count => @bid.watcher_users.count)+"("+@bid.watcher_users.count.to_s+")", respond_path(@bid) %>
|
||||||
|
@ -121,10 +184,12 @@
|
||||||
<!--tags-->
|
<!--tags-->
|
||||||
<div class="user_fans">
|
<div class="user_fans">
|
||||||
<div class="font_title_left">
|
<div class="font_title_left">
|
||||||
<strong><%= l(:label_tag) %></strong>
|
<strong>
|
||||||
|
<%= l(:label_tag) %>
|
||||||
|
</strong>
|
||||||
</div>
|
</div>
|
||||||
<div class="user_underline"></div>
|
<div class="user_underline"></div>
|
||||||
<table style="font-family:微软雅黑">
|
<table style="font-family:'微软雅黑'">
|
||||||
<tr>
|
<tr>
|
||||||
<td><!-- added by william -for tag -->
|
<td><!-- added by william -for tag -->
|
||||||
<%= render :partial => 'tags/tag', :locals => {:obj => @bid, :object_flag => "4"}%>
|
<%= render :partial => 'tags/tag', :locals => {:obj => @bid, :object_flag => "4"}%>
|
||||||
|
@ -144,11 +209,12 @@
|
||||||
<td style="padding-top: 5px">
|
<td style="padding-top: 5px">
|
||||||
<% if @bid.watcher_users.size>0 %>
|
<% if @bid.watcher_users.size>0 %>
|
||||||
<% for user in @bid.watcher_users%>
|
<% for user in @bid.watcher_users%>
|
||||||
|
|
||||||
<%= link_to image_tag(url_to_avatar(user), :class => "avatar", :title => user.name ),user_path(user) %>
|
<%= link_to image_tag(url_to_avatar(user), :class => "avatar", :title => user.name ),user_path(user) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p class="font_lighter"><%= l(:label_project_no_follow) %></p>
|
<p class="font_lighter">
|
||||||
|
<%= l(:label_project_no_follow) %>
|
||||||
|
</p>
|
||||||
<% end%>
|
<% end%>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -177,10 +243,7 @@
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
</div>
|
</div>
|
||||||
|
@ -190,7 +253,6 @@
|
||||||
<%= render_menu :bid_menu %>
|
<%= render_menu :bid_menu %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
<%= call_hook :view_layouts_base_content %>
|
<%= call_hook :view_layouts_base_content %>
|
||||||
<div style="clear:both;"></div>
|
<div style="clear:both;"></div>
|
||||||
|
@ -199,12 +261,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="ajax-indicator" style="display:none;">
|
<div id="ajax-indicator" style="display:none;">
|
||||||
<span><%= l(:label_loading) %></span>
|
<span><%= l(:label_loading) %></span>
|
||||||
</div>
|
</div>
|
||||||
<div id="ajax-modal" style="display:none;"></div>
|
<div id="ajax-modal" style="display:none;"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<%= call_hook :view_layouts_base_body_bottom %>
|
<%= call_hook :view_layouts_base_body_bottom %>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue