Browse Source

Add user information height limit on index and ranklist

pull/6/head
Menci 8 years ago
parent
commit
3ec22c4aea
  1. 6
      views/index.ejs
  2. 6
      views/ranklist.ejs

6
views/index.ejs

@ -41,7 +41,11 @@
<tr>
<td><%= i %></td>
<td><a href="<%= syzoj.utils.makeUrl(['user', user.id]) %>"><%= user.username %></a><% if (user.nameplate) { %><%- user.nameplate %><% } %></td>
<td><%- user.information %></td>
<td>
<div style="max-height: 70px; overflow: hidden; ">
<%- user.information %>
</div>
</td>
</tr>
<%
} %>

6
views/ranklist.ejs

@ -25,7 +25,11 @@
<tr>
<td><%= i %></td>
<td><a href="<%= syzoj.utils.makeUrl(['user', user.id]) %>"><%= user.username %></a><% if (user.nameplate) { %><%- user.nameplate %><% } %></td>
<td><%- user.information %></td>
<td>
<div style="max-height: 70px; overflow: hidden; ">
<%- user.information %>
</div>
</td>
<td><%= user.ac_num %></td>
</tr>
<% } %>

Loading…
Cancel
Save