% this.adminPage = 'privilege'; let privileges = { manage_problem: '管理题目', manage_problem_tag: '管理题目标签', manage_user: '管理用户', }; %> <% include admin_header %>
ID | 用户名 | <% for (let privilege in privileges) { %><%= privileges[privilege] %> | <% } %>
---|---|---|
<%= user.user.id %> | <%= user.user.username %> | <% for (let privilege in privileges) { %>
checked<% } %>>
|
<% } %>