@@ -230,6 +230,16 @@
});
angular.module('ozone').component('commonTools', {
- templateUrl: '/static/templates/tools.html'
+ templateUrl: '/static/templates/tools.html',
+ controller: function ($http) {
+ var ctrl = this;
+ ctrl.docs = false;
+ $http.head("/docs/index.html")
+ .then(function (result) {
+ ctrl.docs = true;
+ },function(){
+ });
+ }
})();
@@ -34,5 +34,6 @@
aria-hidden="true"></a></li>
</ul>
</li>
+ <li ng-show="$ctrl.docs"><a href="/docs">Documentation</a></li>
</div><!--/.nav-collapse -->