discourse/app/assets/javascripts/admin/helpers/admin_user_helpers.js
2013-05-06 12:15:25 -04:00

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);
});