1.修改历史数据中作业为项目时作业显示列表未改变的问题
2.修改作业列表关联项目过长,增加省略号显示和鼠标移动到相应位置的气泡显示
This commit is contained in:
parent
8f8fb79a63
commit
61ba2c47ee
|
@ -482,7 +482,7 @@ class BidsController < ApplicationController
|
|||
#ended
|
||||
end
|
||||
|
||||
if @bid.homework_type == 1
|
||||
if @bid.homework_type
|
||||
@homework = HomeworkAttach.new
|
||||
#@homework_list = @bid.homeworks
|
||||
#增加作业按评分排序,
|
||||
|
|
|
@ -86,10 +86,12 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<td style="width: 300px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
|
||||
<strong>开发项目</strong>:
|
||||
<% if homework.project != nil %>
|
||||
<span title="<%= homework.project.name %>">
|
||||
<%= link_to homework.project.name,project_path(homework.project.id)%>
|
||||
</span>
|
||||
<% else %>
|
||||
暂无
|
||||
<% end %>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% if @bid.homework_type == Bid::HomeworkFile %>
|
||||
<% if @bid.homework_type %>
|
||||
<!-- 提交文件类型 -->
|
||||
<%= render :partial => 'homework' %>
|
||||
|
||||
|
|
Loading…
Reference in New Issue