[% l('Log Out') %]
</a>
</li>
+ <li>
+ <a href="./about" target="_self">
+ <span class="glyphicon glyphicon-question-sign"></span>
+ [% l('About') %]
+ </a>
+ </li>
<li class="divider"></li>
<li class="disabled">
<a href disabled="disabled">
--- /dev/null
+<div class="container-fluid text-center">
+ <div class="alert alert-info alert-less-pad strong-text-2">
+ <span>[% l('About Evergreen') %]</span>
+ </div>
+</div>
+
+<div class="row">
+ <div class="col-md-4">
+ <div class="panel panel-default">
+ <div class="panel-heading">[% l('Server Details') %]</div>
+ <div class="panel-body">
+ <div class="row pad-vert nav-pills-like-tabs">
+ <div class="col-md-6">[% l('Evergreen Version') %]</div>
+ <div class="col-md-6">{{context.version}}</div>
+ </div>
+ <div class="row pad-vert">
+ <div class="col-md-6">[% l('Hostname') %]</div>
+ <div class="col-md-6">{{context.server}}</div>
+ </div>
+ </div>
+ </div><!--panel-->
+ </div>
+</div>
+
+
+
resolve : resolver
});
+ $routeProvider.when('/about', {
+ templateUrl: './t_about',
+ controller: 'AboutCtrl',
+ resolve : resolver
+ });
+
// default page
$routeProvider.otherwise({
templateUrl : './t_splash',
'/eg/staff/cat/catalog/results?query=' +
encodeURIComponent($scope.cat_query);
}
-}]);
+}])
+
+.controller('AboutCtrl', [
+ '$scope','$location','egCore',
+ function($scope , $location , egCore) {
+
+ $scope.context = {
+ server : $location.host()
+ };
+
+ egCore.net.request(
+ 'open-ils.actor','opensrf.open-ils.system.ils_version')
+ .then(function(version) {
+ $scope.context.version = version;
+ }
+ );
+
+}])