Skip to content

Commit

Permalink
chore(plugins): disabled plugins temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Oct 10, 2018
1 parent ab7e7fa commit 5c50b67
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/public/js/angularjs/controllers/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ define(['angular', 'underscore', 'jquery', 'modules/helpers', 'history'], functi

$scope.installedPlugins = [];

var pluginUrl = 'http://plugins.trudesk.io';
var pluginUrl = 'http://_plugins.trudesk.io';

$scope.init = function() {
$scope.installedPlugins = angular.fromJson($scope.installedPlugins);
Expand Down
62 changes: 31 additions & 31 deletions src/views/partials/nav.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -66,37 +66,37 @@
</li>
{{/canUser}}

<li {{#is nav 'plugins'}} class='active tether-plugins' {{/is}} >
<a href="/plugins"><i class="material-icons">select_all</i>Plugins</a>
<ul id="side-nav-sub-plugins" class="side-nav-sub {{#is nav 'plugins'}} subMenuOpen {{/is}}">
{{#each data.common.plugins}}
{{#hasPluginPerm ../data.user permissions}}
<li {{#is ../subnav name}} class='active' {{/is}}><a href="{{menu.main.link}}"><i class="fa-sub-icon {{menu.main.class}}">{{menu.main.icon}}</i><span>{{menu.main.name}}</span></a></li>
{{#compare (size menu.sub) '>' 0}}
{{#is ../subnav name}}
<ul class="side-nav-sub level-2 {{#is ../nav 'plugins'}} subMenuOpen {{/is}}" style="margin: 0; padding: 0;">
{{#each menu.sub.items}}
<li {{#is ../../childnav id}} class='active' {{/is}} style="margin: 0; padding: 0;">
<a href="{{url}}" style="font-size: 12px; padding-left: 30px;">
{{#isNotNull icon}}
<i class="fa-sub-icon material-icons" style="font-size: 16px; margin-left: 3px;">{{icon}}</i>
{{else}}
<i class="fa-sub-icon material-icons" style="font-size: 16px; margin-left: 3px;">label_outline</i>
{{/isNotNull}}
<span>{{title}}</span>
</a>
</li>
{{/each}}
</ul>
{{/is}}
{{/compare}}
{{#unless @last}}
<hr style="background: #ccc;"/>
{{/unless}}
{{/hasPluginPerm}}
{{/each}}
</ul>
</li>
<!--<li {{#is nav 'plugins'}} class='active tether-plugins' {{/is}} >-->
<!--<a href="/plugins"><i class="material-icons">select_all</i>Plugins</a>-->
<!--<ul id="side-nav-sub-plugins" class="side-nav-sub {{#is nav 'plugins'}} subMenuOpen {{/is}}">-->
<!--{{#each data.common.plugins}}-->
<!--{{#hasPluginPerm ../data.user permissions}}-->
<!--<li {{#is ../subnav name}} class='active' {{/is}}><a href="{{menu.main.link}}"><i class="fa-sub-icon {{menu.main.class}}">{{menu.main.icon}}</i><span>{{menu.main.name}}</span></a></li>-->
<!--{{#compare (size menu.sub) '>' 0}}-->
<!--{{#is ../subnav name}}-->
<!--<ul class="side-nav-sub level-2 {{#is ../nav 'plugins'}} subMenuOpen {{/is}}" style="margin: 0; padding: 0;">-->
<!--{{#each menu.sub.items}}-->
<!--<li {{#is ../../childnav id}} class='active' {{/is}} style="margin: 0; padding: 0;">-->
<!--<a href="{{url}}" style="font-size: 12px; padding-left: 30px;">-->
<!--{{#isNotNull icon}}-->
<!--<i class="fa-sub-icon material-icons" style="font-size: 16px; margin-left: 3px;">{{icon}}</i>-->
<!--{{else}}-->
<!--<i class="fa-sub-icon material-icons" style="font-size: 16px; margin-left: 3px;">label_outline</i>-->
<!--{{/isNotNull}}-->
<!--<span>{{title}}</span>-->
<!--</a>-->
<!--</li>-->
<!--{{/each}}-->
<!--</ul>-->
<!--{{/is}}-->
<!--{{/compare}}-->
<!--{{#unless @last}}-->
<!--<hr style="background: #ccc;"/>-->
<!--{{/unless}}-->
<!--{{/hasPluginPerm}}-->
<!--{{/each}}-->
<!--</ul>-->
<!--</li>-->

{{#canUser data.user "notices:view"}}
<li {{#is nav 'notices'}} class='active' {{/is}}><a href="/notices"><i class="fa fa-exclamation-triangle fa-large"></i>Notices</a></li>
Expand Down

0 comments on commit 5c50b67

Please sign in to comment.