Just noticed the custom navigation bar items for “Bugs” etc are missing perhaps removed?
Just wondering if there was a reason behind this?
Just noticed the custom navigation bar items for “Bugs” etc are missing perhaps removed?
Just wondering if there was a reason behind this?
K, added them back …
For the record, this is what was added to </body>
<script>
Discourse.ExternalNavItem = Discourse.NavItem.extend({
href : function() {
return this.get('href');
}.property('href')
});
I18n.translations.en.js.filters.bugs = { title: "Bugs", help: "Open Bugs" };
I18n.translations.en.js.filters.features = { title: "Features", help: "Open Feature Requests" }
Discourse.NavItem.reopenClass({
buildList : function(category, args) {
var list = this._super(category, args);
if(!category) {
list.push(Discourse.ExternalNavItem.create({href: '/category/bug?order=op_likes&status=open', name: 'bugs'}));
list.push(Discourse.ExternalNavItem.create({href: '/category/feature?order=op_likes&status=open', name: 'features'}));
}
return list;
}
});
</script>