Commit 15ba43c6 by Venkatesh Seetharam

ATLAS-113 Add an About Dialog to Apache Atlas UI with version number. Contributed by Vishal Kadam

parent 37db9955
......@@ -24,6 +24,7 @@ angular.module('dgc', ['ngCookies',
'ui.router',
'dgc.system',
'dgc.home',
'dgc.about',
'dgc.search',
'dgc.navigation'
]);
......
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
angular.module('dgc.about').controller('AboutController', ['$scope', 'AboutResource', function($scope, AboutResource) {
AboutResource.get(function(data) {
$scope.versionInfo = data;
});
}]);
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
angular.module('dgc.about', []);
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
angular.module('dgc.about').factory('AboutResource', ['$resource', function($resource) {
return $resource('/api/atlas/admin/version', {});
}]);
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<div class="modal-header">
<h3 class="modal-title title-bold">About</h3>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-4">
<img src="../img/ApacheAtlasLogo.png" class="img-responsive">
</div>
<div class="col-md-8">
<h2 class="title-bold">Apache Atlas</h2>
<p><b>Version : </b> {{versionInfo.Version}}</p>
</br>
<p class="text-info">Get involved!</p>
<p class="text-info"><a href="http://apache.org/licenses/LICENSE-2.0" target="_blank">Licensed under the Apache License Version 2.0</a></p>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-success" ng-click="$dismiss()">OK</button>
</div>
\ No newline at end of file
......@@ -18,7 +18,7 @@
'use strict';
angular.module('dgc.home').controller('HeaderController', ['$scope', function($scope) {
angular.module('dgc.home').controller('HeaderController', ['$scope', '$modal', function($scope, $modal) {
$scope.menu = [];
......@@ -26,4 +26,13 @@ angular.module('dgc.home').controller('HeaderController', ['$scope', function($s
$scope.isLoggedIn = function() {
return true;
};
$scope.ShowAbout = function() {
$modal.open({
animation: true,
templateUrl: '/modules/about/views/about.html',
controller: 'AboutController',
size: 'lg'
});
};
}]);
......@@ -32,5 +32,6 @@
<a data-ui-sref="{{item.state}}">{{item.title}}</a>
</li>
</ul>
<a ng-if="!username" class="pull-right" href="javascript:void(0)" ng-click="ShowAbout()">About</a>
</nav>
</div>
\ No newline at end of file
......@@ -8,6 +8,8 @@ ATLAS-54 Rename configs in hive hook (shwethags)
ATLAS-3 Mixed Index creation fails with Date types (suma.shivaprasad via shwethags)
ALL CHANGES:
ATLAS-113 Add an About Dialog to Apache Atlas UI with version number (Vishal Kadam
via Venkatesh Seetharam)
ATLAS-109 Remove v2 Folder (Vishal Kadam via Venkatesh Seetharam)
ATLAS-90 Support offline builds (Vishal Kadam via Venkatesh Seetharam)
ATLAS-154 Update website for 0.5-incubating release (Venkatesh Seetharam)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment