From ceeea4d5272ce8a4a814261eb8a1053693822199 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Fri, 15 Aug 2014 16:31:52 -0400 Subject: [PATCH] License Changes for https://trello.com/c/gl5PegTL/253-update-license-nags-based-on-marketing-feedback and https://docs.google.com/a/ansible.com/document/d/1bvcfoV8j5z0OB7ZQsDwYY1WB58odnchp9vCic2F__eo/edit?pli=1 --- awx/ui/static/js/helpers/License.js | 6 ++++-- awx/ui/static/less/ansible-ui.less | 11 +++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/helpers/License.js b/awx/ui/static/js/helpers/License.js index 4228220499..f1c7c4d1a1 100644 --- a/awx/ui/static/js/helpers/License.js +++ b/awx/ui/static/js/helpers/License.js @@ -54,6 +54,7 @@ function($rootScope, $compile, CreateDialog, Store, LicenseUpdateForm, GenerateF contact_us = "contact us ", renew = "ansible.com/renew ", pricing = "ansible.com/pricing ", + license_link = "click here", result = {}, license_is_valid=false; @@ -110,8 +111,9 @@ function($rootScope, $compile, CreateDialog, Store, LicenseUpdateForm, GenerateF } else { // No license title = "Add Your License"; - html = "

Now that you’ve successfully installed or upgraded Ansible Tower, the next step is to add a license file.

" + - "

If you don’t have a license file yet, visit " + pricing + " to see all of our free and paid license options.

"; + html = "

Now that you’ve successfully installed or upgraded Ansible Tower, the next step is to add a license file. " + + "If you don’t have a license file yet, " + license_link + " to see all of our free and paid license options.

" + + "

Get a Free Tower Trial License

"; } if (IsAdmin()) { diff --git a/awx/ui/static/less/ansible-ui.less b/awx/ui/static/less/ansible-ui.less index 7c38254ec8..403c547120 100644 --- a/awx/ui/static/less/ansible-ui.less +++ b/awx/ui/static/less/ansible-ui.less @@ -1255,6 +1255,17 @@ input[type="checkbox"].checkbox-no-label { color: @grey; font-size: 10px; } + + .free-button { + background-color: #ff5850; + border: 1px solid #ff5850; + color: @white; + } + .free-button:hover { + background-color: #E64F48; + border: 1px solid #E64F48; + color: @white; + } } /* Inventory nav links */