美化作业显示界面
This commit is contained in:
parent
43b350e3d8
commit
39ce95a950
|
@ -47,27 +47,31 @@
|
|||
<div class="main_context">
|
||||
<div class="spaceleft">
|
||||
<div>
|
||||
<table style="width: 250px ; line-height: 1.5em;font-size: 12px">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width: 40px">
|
||||
<td style="padding-left:8px ">
|
||||
<% if get_avatar?(project) %>
|
||||
<%= image_tag(url_to_avatar(project),:style => "width:60px;height:60px" ) %>
|
||||
<%= image_tag(url_to_avatar(project),:style => "width:80px;height:80px" ) %>
|
||||
<% else %>
|
||||
<%= image_tag('../images/avatars/Project/course.jpg', :style => "width:60px;height:60px") %>
|
||||
<%= image_tag('../images/avatars/Project/course.jpg', :style => "width:80px;height:80px") %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<table>
|
||||
<tr valign="top">
|
||||
<td style="width: 50px;vertical-align: top;" ><strong>课程名:</strong></td>
|
||||
<td style="text-align: left">
|
||||
<span style=" word-wrap: break-word; word-break: break-all"><strong> <%= link_to @bid.courses.first.name.to_s, homework_project_path(@bid.courses.first) if @bid.courses.first %></strong></span>
|
||||
<tr>
|
||||
<td style="vertical-align: top;font-size: 16px;text-align: center;" >
|
||||
<span style=" word-wrap: break-word; word-break: break-all">
|
||||
<strong>
|
||||
<%= link_to @bid.courses.first.name.to_s, homework_project_path(@bid.courses.first) if @bid.courses.first %>
|
||||
</strong>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 50px;vertical-align: top;"><strong>作业名:</strong></td>
|
||||
<td style="text-align: left">
|
||||
<span style="color:#ed8924"><strong><%= h @bid.name %></strong></span>
|
||||
<td style=" word-wrap: break-word; word-break: break-all;font-size: 16px;text-align: center">
|
||||
<span style=" color:#ed8924">
|
||||
<strong><%= h @bid.name %></strong>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
|
|
Loading…
Reference in New Issue