mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 10:54:22 +08:00
Remove unused titled-link-to
helper
This commit is contained in:
parent
8da4deba42
commit
d010eee5d8
|
@ -1,23 +1,5 @@
|
|||
var safe = Handlebars.SafeString;
|
||||
|
||||
/**
|
||||
Produces a link to a route with support for i18n on the title
|
||||
|
||||
@method titled-link-to
|
||||
@for Handlebars
|
||||
**/
|
||||
Handlebars.registerHelper('titled-link-to', function(name, object) {
|
||||
var options = [].slice.call(arguments, -1)[0];
|
||||
if (options.hash.titleKey) {
|
||||
options.hash.title = I18n.t(options.hash.titleKey);
|
||||
}
|
||||
if (arguments.length === 3) {
|
||||
return Ember.Handlebars.helpers['link-to'].call(this, name, object, options);
|
||||
} else {
|
||||
return Ember.Handlebars.helpers['link-to'].call(this, name, options);
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
Bound avatar helper.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user