|
|
@ -26,11 +26,16 @@ |
|
|
|
<td><%= i %></td> |
|
|
|
<td><%= i %></td> |
|
|
|
<td><a href="<%= syzoj.utils.makeUrl(['user', user.id]) %>"><%= user.username %></a><% if (user.nameplate) { %><%- user.nameplate %><% } %></td> |
|
|
|
<td><a href="<%= syzoj.utils.makeUrl(['user', user.id]) %>"><%= user.username %></a><% if (user.nameplate) { %><%- user.nameplate %><% } %></td> |
|
|
|
<td> |
|
|
|
<td> |
|
|
|
<div style="max-height: 50px; overflow: hidden; "> |
|
|
|
<script id="user-infomation-script-<%= i %>"> |
|
|
|
<table width="100%"><tr style="border: none; "><td style="padding: 0; "> |
|
|
|
(function () { |
|
|
|
<%- user.information %> |
|
|
|
var html = <%- JSON.stringify(user.information) %>; |
|
|
|
</td></tr></table> |
|
|
|
var elem = document.createElement('div'); |
|
|
|
</div> |
|
|
|
elem.style = 'max-height: 50px; overflow: hidden; width: 100%; '; |
|
|
|
|
|
|
|
elem.innerHTML = html; |
|
|
|
|
|
|
|
var script = document.getElementById('user-infomation-script-<%= i %>'); |
|
|
|
|
|
|
|
script.parentNode.replaceChild(elem, script); |
|
|
|
|
|
|
|
})(); |
|
|
|
|
|
|
|
</script> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td><%= user.ac_num %></td> |
|
|
|
<td><%= user.ac_num %></td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|