mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
Tower String Audit
This commit is contained in:
parent
e053d2c33a
commit
2c6e229e71
@ -1,3 +1,3 @@
|
||||
{
|
||||
|
||||
"BRAND_NAME": "Tower"
|
||||
}
|
||||
|
||||
@ -1,9 +1,11 @@
|
||||
import EventService from './event.service';
|
||||
import PathService from './path.service';
|
||||
import BaseStringService from './base-string.service';
|
||||
import AppStrings from './app.strings';
|
||||
|
||||
angular
|
||||
.module('at.lib.services', [])
|
||||
.service('EventService', EventService)
|
||||
.service('PathService', PathService)
|
||||
.service('BaseStringService', BaseStringService);
|
||||
.service('BaseStringService', BaseStringService)
|
||||
.service('AppStrings', AppStrings);
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
export default
|
||||
['$scope', '$state', 'ConfigService',
|
||||
function($scope, $state, ConfigService){
|
||||
['$scope', '$state', 'ConfigService', 'AppStrings',
|
||||
function($scope, $state, ConfigService, AppStrings){
|
||||
var init = function(){
|
||||
$scope.name = AppStrings.get('BRAND_NAME');
|
||||
ConfigService.getConfig()
|
||||
.then(function(config){
|
||||
$scope.version = config.version.split('-')[0];
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<!-- Don't indent this properly, you'll break the cow -->
|
||||
<pre class="About-cowsayCode">
|
||||
_______________
|
||||
< Tower {{version}} >
|
||||
< {{name}} {{version}} >
|
||||
---------------
|
||||
\ ^__^
|
||||
\ (oo)\_______
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user