simov / express-admin

MySQL, MariaDB, PostgreSQL, SQLite admin for Node.js
MIT License
1.17k stars 222 forks source link

image displaying functionality, plus Chinese translation revision #139

Open zoeeer opened 6 years ago

zoeeer commented 6 years ago

This pull request contain 2 changes:

  1. Image displaying functionality

[Issue] In 'express-admin-example', it is hard-coded in 'images.js' to force the 2nd column of listview to display as an image item. It does not display images in any other columns, and also it causes any text field in the 2nd column unable to display properly.

[Solution] I fixed it by adding an image wrapper in the template, so that any columns of images can be located in the DOM (which works together with my commit in 'express-admin-example').

  1. I improved the Chinese translation a bit.