framework/js/lib/models
Toby Zerner eb72307a54 User display names (#1246)
* Introduce user display names

It is not uncommon for forums to be intergrated with sites where users
don't have a unique "handle" - they might just have their first name,
or a full name, which is not guaranteed to be unique.

This commit introduces the concept of "display names" for users. By
default display names are the same as usernames, but extensions may
override this and set them to something different. The important thing
is that all code should use `display_name` whenever intending to output
a human-readable name - `username` is reserved for cases where you want
to output a unique identifier (which may or may not be human-friendly).

The new "GetDisplayName" API is probably sub-optimal, but I didn't worry
too much because we can come up with something better in `next-back`.

ref #557

* Apply fixes from StyleCI

[ci skip] [skip ci]
2017-09-20 16:42:18 +09:30
..
Discussion.js Fix syntax errors when compiling js files 2016-11-08 00:32:44 +03:30
Forum.js Remove unused mixin imports 2016-03-29 22:32:15 +09:00
Group.js Remove unused mixin imports 2016-03-29 22:32:15 +09:00
Notification.js Fix syntax errors when compiling js files 2016-11-08 00:32:44 +03:30
Post.js Fix syntax errors when compiling js files 2016-11-08 00:32:44 +03:30
User.js User display names (#1246) 2017-09-20 16:42:18 +09:30