学校列表增加序号显示

dev_cxt2
sw 10 years ago
parent 7c818ce59a
commit 19c515e11e

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

Loading…
Cancel
Save