remove duplicate component from admin

This commit is contained in:
Arpit Jalan 2015-07-23 07:09:11 +05:30
parent e5e0071cb7
commit 6382f3cc03
2 changed files with 0 additions and 35 deletions

View file

@ -1,22 +0,0 @@
export default Ember.Component.extend({
tagName: 'li',
classNameBindings: ['active'],
router: function() {
return this.container.lookup('router:main');
}.property(),
fullPath: function() {
return Discourse.getURL(this.get('path'));
}.property('path'),
active: function() {
const route = this.get('route');
if (!route) { return; }
const routeParam = this.get('routeParam'),
router = this.get('router');
return routeParam ? router.isActive(route, routeParam) : router.isActive(route);
}.property('router.url', 'route')
});

View file

@ -1,13 +0,0 @@
{{#if routeParam}}
{{#link-to route routeParam}}{{i18n label}}{{/link-to}}
{{else}}
{{#if route}}
{{#link-to route}}{{i18n label}}{{/link-to}}
{{else}}
{{#if path}}
<a href="{{unbound fullPath}}" data-auto-route="true">{{i18n label}}</a>
{{else}}
<a href="{{unbound href}}" data-auto-route="true">{{i18n label}}</a>
{{/if}}
{{/if}}
{{/if}}