1.界面颜色调整

2.得分显示取消“分”字
This commit is contained in:
sw 2014-06-19 19:48:03 +08:00
parent 19530df395
commit 36fecfc635
1 changed files with 13 additions and 13 deletions

View File

@ -12,7 +12,7 @@
User.current.admin? ||
!(User.current.roles_for_project(@bid.courses.first).map(&:id) & ([7,9])).empty? ) ||
(Rails.env.development?) %>
</td>
</td>
<td align="right">
<div class="project-search">
<% if is_teacher %>
@ -36,7 +36,7 @@
<tr>
<td title="<%= homework.user.name %>">
<p style="width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><strong>
<%= link_to (is_teacher ? homework.user.realname : homework.user ), user_path(homework.user)%>
<%= link_to (is_teacher ? homework.user.realname : homework.user ), user_path(homework.user),{:style => "color:#727272"} %>
</strong></p>
</td>
</tr>
@ -57,19 +57,19 @@
<td colspan="2">
<table width="580px" border="0" style="table-layout: fixed">
<tr>
<td style="width: 300px;">
<strong>作名称:</strong>&nbsp;
<td style="width: 300px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
<strong>作名称:</strong>&nbsp;
<% if homework.name == nil || homework.name == "" %>
<% homework_filename = homework.user.name + "提交的作业" %>
<% else %>
<% homework_filename = homework.name %>
<% end %>
<strong>
<strong title="<%=homework_filename%>">
<%= link_to homework_filename , homework_attach_path(homework)%>
</strong>
</td>
<td style="vertical-align: top;width: 200px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
<strong>参与人员:&nbsp;</strong>
<strong>合作成员:&nbsp;</strong>
<% homework_users = "" %>
<% homework.users.each do |user| %>
<% homework_users = homework_users + (is_teacher ? user.realname : user.name) %>
@ -96,16 +96,16 @@
<% if homework.project != nil %>
<%= link_to homework.project.name,project_path(homework.project.id)%>
<% else %>
该作业暂无项目
暂无
<% end %>
</td>
<td>
<strong>项目得分:</strong>&nbsp;
<span class="required">
<span style="color: #EC6300;">
<% if homework.project != nil %>
0
0
<% else %>
0
0
<% end %>
</span>
</td>
@ -123,7 +123,7 @@
</td>
<td>
<strong>互评得分:&nbsp;
<span class="required"><%= student_score_for_homework(homework) %></span>&nbsp;&nbsp;
<span style="color: #EC6300;"><%= student_score_for_homework(homework) %></span>&nbsp;&nbsp;
<% if is_evaluation && is_student && (!users_for_homework(homework).include? User.current)%>
<%= link_to "学生互评>>",homework_attach_path(homework) %>
<% end %>
@ -138,8 +138,8 @@
<% end %>
</td>
<td>
<strong>评得分:&nbsp;
<span class="required"><%= score_for_homework homework %>分</span>&nbsp;&nbsp;
<strong>评得分:&nbsp;
<span style="color: #EC6300;"><%= score_for_homework homework %></span>&nbsp;&nbsp;
<% if is_teacher %>
<%= link_to "教师评分>>",homework_attach_path(homework) %>
<% end %>