|
|
|
@ -7,7 +7,11 @@
|
|
|
|
|
<td>
|
|
|
|
|
<table width="100%" border="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" valign="top"><strong><span><%= link_to(bid.author.lastname+bid.author.firstname, user_path(bid.author), :class => 'bid_user') %>: <%= link_to(bid.name, respond_path(bid), :class => 'bid_path') %></span>
|
|
|
|
|
<td colspan="2" valign="top"><span class="font-lighter"><%= link_to(bid.author.lastname+bid.author.firstname, user_path(bid.author)) %></span>
|
|
|
|
|
<span class="font-lighter"><%= l(:label_user_create_project_homework) %></span>:
|
|
|
|
|
<span><%= link_to(bid.name, respond_path(bid), :class => 'bid_path') %></span>
|
|
|
|
|
<span style="float: right"><%= l(:field_deadline) %> : <%=bid.deadline %></span>
|
|
|
|
|
|
|
|
|
|
<span style="float: right">
|
|
|
|
|
<% if (User.current.admin?||User.current.id==bid.author_id)&&(bid.homework_type == 1)%>
|
|
|
|
|
<%= link_to(
|
|
|
|
@ -25,6 +29,18 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
</strong></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr><td colspan="2">
|
|
|
|
|
<!-- tishi -->
|
|
|
|
|
<span style="float: right">
|
|
|
|
|
<% if betweentime(bid.deadline) < 0 %>
|
|
|
|
|
<span style="color: red; float: right"><%= l(:label_commit_limit)%></span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% if betweentime(bid.deadline) < 3 %>
|
|
|
|
|
<span style="color: red"><%= l(:label_commit_ar) %></span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %> </span>
|
|
|
|
|
</td></tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="500">
|
|
|
|
|
<table border="0">
|
|
|
|
@ -46,7 +62,7 @@
|
|
|
|
|
</span><span class="font_lighter"><%= l(:label_x_responses, :count => bid.commit) %>(<strong><%= link_to bid.commit, respond_path(bid) %></strong>)</span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
<td width="200" align="right" class="a"><span class="font_lighter"> <%= format_time bid.created_on %></span></td>
|
|
|
|
|
<td width="200" align="right" class="a"><span class="font_lighter"><%= l(:label_create_time) %> : <%=format_time bid.created_on %></span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|