Merge pull request #4630 from jakemcdermott/current-date

[3.8] Use current year in about modal
This commit is contained in:
Jake McDermott 2020-10-20 15:31:31 -04:00 committed by GitHub
commit 36abc9b123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ export default ['$rootScope', '$scope', '$location', 'ConfigService', 'lastPath'
$scope.ansible_version = config.ansible_version;
$scope.subscription = config.license_info.subscription_name;
$scope.speechBubble = createSpeechBubble($rootScope.BRAND_NAME, config.version);
$scope.currentYear = new Date().getFullYear();
$('#about-modal').modal('show');
});

View File

@ -29,7 +29,7 @@
Ansible {{ ansible_version }}
</span> <br>
<span class="Copyright-text" translate>
Copyright &copy; 2019 Red Hat, Inc. <br>
Copyright &copy; {{ currentYear }} Red Hat, Inc. <br>
Visit <a href="http://www.ansible.com/" target="_blank">Ansible.com</a> for more information.<br>
</span>
</p>