美化作业显示界面

president
sw 11 years ago
parent 43b350e3d8
commit 39ce95a950

@ -47,27 +47,31 @@
<div class="main_context"> <div class="main_context">
<div class="spaceleft"> <div class="spaceleft">
<div> <div>
<table style="width: 250px ; line-height: 1.5em;font-size: 12px"> <table>
<tr> <tr>
<td style="width: 40px"> <td style="padding-left:8px ">
<% if get_avatar?(project) %> <% 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 %> <% 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 %> <% end %>
</td> </td>
<td> <td>
<table> <table>
<tr valign="top"> <tr>
<td style="width: 50px;vertical-align: top;" ><strong>课程名:</strong></td> <td style="vertical-align: top;font-size: 16px;text-align: center;" >
<td style="text-align: left"> <span style=" word-wrap: break-word; word-break: break-all">
<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> <strong>
<%= link_to @bid.courses.first.name.to_s, homework_project_path(@bid.courses.first) if @bid.courses.first %>
</strong>
</span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="width: 50px;vertical-align: top;"><strong>作业名:</strong></td> <td style=" word-wrap: break-word; word-break: break-all;font-size: 16px;text-align: center">
<td style="text-align: left"> <span style=" color:#ed8924">
<span style="color:#ed8924"><strong><%= h @bid.name %></strong></span> <strong><%= h @bid.name %></strong>
</span>
</td> </td>
</tr> </tr>
<!-- <tr> <!-- <tr>

Loading…
Cancel
Save