2013-09-13 10:11:36 +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">
|
|
|
|
|
|
|
|
|
|
<%=render :partial => 'layouts/base_header'%>
|
|
|
|
|
|
|
|
|
|
<div id="main" class="">
|
|
|
|
|
<div id="sidebar">
|
|
|
|
|
<div class="main_context">
|
|
|
|
|
<div class="spaceleft">
|
|
|
|
|
<div class="inf_user_image">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="left" valign="middle">
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(@bid.courses.first), :class => "avatar2"), project_path(@bid.courses.first), :class => "avatar" %>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
2013-09-16 08:49:39 +08:00
|
|
|
|
<td class="info_font" style=" word-wrap: break-word; word-break: break-all">作业</td>
|
2013-09-13 10:11:36 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2013-09-16 08:49:39 +08:00
|
|
|
|
<td class="info_font" style=" word-wrap: break-word; word-break: break-all"><%= h @bid.name %></td>
|
2013-09-13 10:11:36 +08:00
|
|
|
|
</tr>
|
2013-09-16 08:49:39 +08:00
|
|
|
|
|
2013-09-13 10:11:36 +08:00
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
2013-09-16 08:49:39 +08:00
|
|
|
|
<td><%= l(:label_teacher) %> : <%= link_to(@user.firstname+@user.lastname, user_path(@user))%></td>
|
2013-09-13 10:11:36 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= l(:label_course_homework) %> : <%= link_to(@bid.courses.first.name, project_path(@bid.courses.first))%></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= l(:label_limit_time) %> : <%= @bid.deadline%></td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<!-- <div>
|
|
|
|
|
<%= link_to "问答"+"("+@bid.watcher_users.count.to_s+")", respond_path(@bid) %>
|
|
|
|
|
<%= link_to l(:label_commit_homework)+ ":" +"("+@bid.biding_projects.count.to_s+")", project_for_bid_path(@bid) %>
|
|
|
|
|
<%= link_to l(:label_responses)+"("+@bid.commit.to_s+")", respond_path(@bid)%>
|
|
|
|
|
</div> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<div class="font_title_left">
|
|
|
|
|
<strong><%= l(:label_tag) %></strong>
|
|
|
|
|
</div><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>
|
|
|
|
|
|
|
|
|
|
<!--homework-->
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<div class="font_title_left">
|
|
|
|
|
<strong><%= l(:label_commit_homework) %></strong>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<div class="left_wf">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-top: 5px">
|
2013-09-15 16:49:19 +08:00
|
|
|
|
<% if @bid.homework_type == 1%>
|
|
|
|
|
<% if @bid.homeworks.size>0 %>
|
|
|
|
|
<% for homework in @bid.homeworks %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(homework.user), :class => "avatar", :title => homework.user.name), user_path(homework.user), :class => "avatar" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<p class="font_lighter"><%= l(:label_no_course_project) %></p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else%>
|
2013-09-13 10:11:36 +08:00
|
|
|
|
<% if @bid.projects.size>0 %>
|
|
|
|
|
<% for project in @bid.projects%>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(project), :class => "avatar", :title => project.name), project_path(project), :class => "avatar" %>
|
|
|
|
|
<% end%>
|
|
|
|
|
<% else %>
|
2013-09-13 16:36:36 +08:00
|
|
|
|
<p class="font_lighter"><%= l(:label_no_course_project) %></p>
|
2013-09-13 10:11:36 +08:00
|
|
|
|
<% end %>
|
2013-09-15 16:49:19 +08:00
|
|
|
|
<% end %>
|
2013-09-13 10:11:36 +08:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
</div>
|
2013-09-14 09:51:26 +08:00
|
|
|
|
<div id="content">
|
2013-09-13 16:36:36 +08:00
|
|
|
|
<div class="tabs_new">
|
2013-09-14 09:51:26 +08:00
|
|
|
|
<ul>
|
|
|
|
|
<li><%= link_to l(:label_question_student), { :controller => 'bids', :action => 'show' },:class => link_class(:respond)%></li>
|
|
|
|
|
<li><%= link_to l(:label_homework_commit), { :controller => 'bids', :action => 'show_project' },:class => link_class(:project)%></li>
|
2013-09-14 17:25:57 +08:00
|
|
|
|
<!-- <li><%= link_to l(:label_homework_respond), { :controller => 'bids', :action => 'homework_respond' },:class => link_class(:homework_respond)%></li>
|
|
|
|
|
--><ul>
|
2013-09-13 16:36:36 +08:00
|
|
|
|
</div>
|
2013-09-13 10:11:36 +08:00
|
|
|
|
<%= 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>
|