Utilizo este código (en la pestaña /head de la página de personalización de CSS/HTML) para agregar algunos elementos adicionales al menú, pero dejó de funcionar después de una actualización reciente. ¿Alguien sabe por qué?
<script>
Discourse.ExternalNavItem = Discourse.NavItem.extend({
href : function() {
return this.get('href');
}.property('href')
});
I18n.translations.en.js.filters.first_name_here = { title: "Nombre", help: "Nombre de nuevo" };
I18n.translations.en.js.filters.second_name_here = { title: "Nombre", help: "Visite nuestro...." };
I18n.translations.en.js.filters.tags = { title: "Etiquetas", help: "Etiquetas" };
Discourse.NavItem.reopenClass({
buildList : function(category, args) {
var list = this._super(category, args);
if(!category) {
list.push(Discourse.ExternalNavItem.create({href: 'http://forum.com/tags', name: 'tags'}));
list.push(Discourse.ExternalNavItem.create({href: 'https://forum.com/something', name: 'name'}));
list.push(Discourse.ExternalNavItem.create({href: 'https://forum.com/t/thread-url/193454#heading--name', name: 'name'}));
}
return list;
}
});
</script>