学校列表增加序号显示

This commit is contained in:
sw 2015-07-27 16:15:04 +08:00
parent 7c818ce59a
commit 19c515e11e
1 changed files with 9 additions and 3 deletions

View File

@ -11,20 +11,26 @@
<table class="list" style="width: 100%;table-layout: fixed">
<thead>
<tr>
<th>
<th style="width: 50px;">
序号
</th>
<th style="width: 100px;">
LOGO
</th>
<th>
学校名称
</th>
<th></th>
<th style="width: 100px;"></th>
</tr>
</thead>
<tbody>
<% @schools.each do |school|%>
<tr class="<%= cycle("odd", "even") %>">
<td style="text-align:center;vertical-align: middle;">
<%= school.id %>
</td>
<td align="center">
<%= image_tag(school.logo_link,width:46,height:46) %>
<%= image_tag(school.logo_link,width:40,height:40) %>
</td>
<td style="text-align:center;vertical-align: middle;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=school.name%>'>
<span>