]> git.cworth.org Git - empires-server/commit
Refactor admin page a bit
authorCarl Worth <cworth@cworth.org>
Thu, 25 Jun 2020 03:19:18 +0000 (20:19 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 26 Jun 2020 14:37:59 +0000 (07:37 -0700)
commitf0f8fab1203b64af04c7c41c6a4a5d7a3cfe88c6
treefa858c1675ec90e2d408c241525ec2e5eac94d68
parent3586642fb026f5caa5da24ec8a68862509f0d4d1
Refactor admin page a bit

Using a new filter to map an array to a new array of just a single
property value from each object of the original array.

This lets us avoid using the "for" directive in the template, as well
as use the "join" filter to get commas between each item in the list,
(which is hard to do with the "for" directive in the template).
lmno.js
templates/admin.html