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