mirror of
https://github.com/discourse/discourse.git
synced 2025-05-02 18:24:36 +08:00
13 lines
352 B
JavaScript
13 lines
352 B
JavaScript
/**
|
|
Return the url to a user's admin page given the username.
|
|
For example:
|
|
|
|
<a href="{{unbound adminUserPath username}}">{{unbound username}}</a>
|
|
|
|
@method adminUserPath
|
|
@for Handlebars
|
|
**/
|
|
Handlebars.registerHelper('adminUserPath', function(username) {
|
|
return Discourse.getURL("/admin/users/") + Ember.Handlebars.get(this, username);
|
|
});
|