diff --git a/java/google/registry/ui/js/registrar/console.js b/java/google/registry/ui/js/registrar/console.js index 8d058e33b..bc930770e 100644 --- a/java/google/registry/ui/js/registrar/console.js +++ b/java/google/registry/ui/js/registrar/console.js @@ -40,11 +40,12 @@ goog.forwardDeclare('registry.Component'); * The Registrar Console. * @param {string} xsrfToken Populated by server-side soy template. * @param {string} clientId The logged in GAE user. + * @param {string} productName The software name displayed on the UI. * @constructor * @extends {registry.Console} * @final */ -registry.registrar.Console = function(xsrfToken, clientId) { +registry.registrar.Console = function(xsrfToken, clientId, productName) { registry.registrar.Console.base( this, 'constructor', new registry.registrar.EppSession(this, xsrfToken, clientId)); @@ -66,6 +67,11 @@ registry.registrar.Console = function(xsrfToken, clientId) { */ this.xsrfToken_ = xsrfToken; + /** + * @type {string} + */ + this.productName = productName; + /** * Last active nav element. * @type {Element} diff --git a/java/google/registry/ui/js/registrar/dashboard.js b/java/google/registry/ui/js/registrar/dashboard.js index 16d93b1bc..7729bf10a 100644 --- a/java/google/registry/ui/js/registrar/dashboard.js +++ b/java/google/registry/ui/js/registrar/dashboard.js @@ -54,7 +54,10 @@ registry.registrar.Dashboard.prototype.bindToDom = function(id) { registry.registrar.Dashboard.base(this, 'bindToDom', ''); goog.dom.removeChildren(goog.dom.getRequiredElement('reg-appbar')); goog.soy.renderElement(goog.dom.getElement('reg-content'), - registry.soy.registrar.console.dashboard); + registry.soy.registrar.console.dashboard, + { + productName: this.console.productName + }); goog.events.listen(goog.dom.getElement('rotate'), goog.events.EventType.CLICK, goog.bind(this.rotate_, this)); diff --git a/java/google/registry/ui/js/registrar/main.js b/java/google/registry/ui/js/registrar/main.js index 2af0d9063..d4c037608 100644 --- a/java/google/registry/ui/js/registrar/main.js +++ b/java/google/registry/ui/js/registrar/main.js @@ -28,8 +28,9 @@ goog.require('registry.registrar.Console'); * * @param {string} xsrfToken populated by server-side soy template. * @param {string} clientId The registrar clientId. + * @param {string} productName the product name displayed by the UI. * @export */ -registry.registrar.main = function(xsrfToken, clientId) { - new registry.registrar.Console(xsrfToken, clientId); +registry.registrar.main = function(xsrfToken, clientId, productName) { + new registry.registrar.Console(xsrfToken, clientId, productName); }; diff --git a/java/google/registry/ui/soy/registrar/Console.soy b/java/google/registry/ui/soy/registrar/Console.soy index 44ea13634..09f1ae27a 100644 --- a/java/google/registry/ui/soy/registrar/Console.soy +++ b/java/google/registry/ui/soy/registrar/Console.soy @@ -27,6 +27,7 @@ {@param isAdmin: bool} /** Is this user an App Engine account admin? */ {@param logoutUrl: string} /** Generated URL for logging out of Google. */ {@param showPaymentLink: bool} + {@param productName: string} /** Name to display for this software product. */ {call registry.soy.console.header} {param app: 'registrar' /} {param subtitle: 'Registrar Console' /} @@ -59,7 +60,9 @@ {/switch} {if isNonnull(DEBUG)} - + {/if} {/template} @@ -110,8 +113,8 @@

Console is disabled

- The Registrar Console of the Google Registry is temporarily disabled. Please contact your - customer service representative for more information. + The {$productName} registrar console is temporarily disabled. Please + contact your customer service representative for more information.

@@ -136,9 +139,9 @@

You need permission

- The account you are logged in as is not associated with Google - Registry. Please contact your customer service representative or - switch to an account associated with Google Registry. + The account you are logged in as is not associated with {$productName}. + Please contact your customer service representative or + switch to an account associated with {$productName}.

You are signed in as {$username}.

@@ -152,10 +155,11 @@ /** Welcome text and nav. */ {template .dashboard} + {@param productName: string}
-

Welcome to the Google Registry Registrar ConsoleBETA

-

This console can help you manage your relationship with Google - Registry and allow self-service for key operations.

+

Welcome to the {$productName} Registrar ConsoleBETA

+

This console can help you manage your relationship with {$productName} + and allow self-service for key operations.

@@ -179,7 +183,7 @@

Contact Us

View important phone & email
contact information for
- Google Registry. + {$productName}.
@@ -213,8 +217,8 @@

registry-support@google.com
- For general purpose questions once you are integrated with - Google Registry. If the issue is urgent, please put + For general purpose questions once you are integrated + with our registry system. If the issue is urgent, please put "Urgent" in the email title.

Note: You may receive occasional service @@ -255,7 +259,8 @@

Resources & billing

- Google Registry uses Google Drive to share important documentation. + The registry system uses Google Drive to share + important documentation.

TLD information

Find onboarding FAQs & technical documentation in this folder. diff --git a/javatests/google/registry/ui/js/registrar/console_test.js b/javatests/google/registry/ui/js/registrar/console_test.js index b8b7ed55b..34fe4103e 100644 --- a/javatests/google/registry/ui/js/registrar/console_test.js +++ b/javatests/google/registry/ui/js/registrar/console_test.js @@ -70,7 +70,9 @@ function tearDown() { function testButter() { - registry.registrar.ConsoleTestUtil.visit(test); + registry.registrar.ConsoleTestUtil.visit(test, { + productName: 'Foo Registry' + }); registry.util.butter('butter msg'); var butter = goog.dom.getElementByClass(goog.getCssName('kd-butterbar')); assertNotNull(butter.innerHTML.match(/.*butter msg.*/)); @@ -90,7 +92,8 @@ function testEppLogin() { test, { isEppLoggedIn: true, testClientId: test.testClientId, - testXsrfToken: test.testXsrfToken + testXsrfToken: test.testXsrfToken, + productName: 'Foo Registry' }, function() { test.sessionMock.login( goog.testing.mockmatchers.isFunction).$does(function() { @@ -109,7 +112,9 @@ function testEppLogin() { /** Authed user with no path op specified should nav to welcome page. */ function testShowLoginOrDash() { - registry.registrar.ConsoleTestUtil.visit(test); + registry.registrar.ConsoleTestUtil.visit(test, { + productName: 'Foo Registry' + }); assertNotNull(goog.dom.getElement('domain-registrar-dashboard')); } diff --git a/javatests/google/registry/ui/js/registrar/console_test_util.js b/javatests/google/registry/ui/js/registrar/console_test_util.js index a666b9b93..2c3a7b004 100644 --- a/javatests/google/registry/ui/js/registrar/console_test_util.js +++ b/javatests/google/registry/ui/js/registrar/console_test_util.js @@ -88,7 +88,8 @@ registry.registrar.ConsoleTestUtil.visit = function( /** @type {!registry.registrar.Console} */ test.console = new registry.registrar.Console( opt_args.testXsrfToken, - opt_args.testClientId); + opt_args.testClientId, + opt_args.productName); // XXX: Should be triggered via event passing. test.console.handleHashChange(); test.mockControl.$verifyAll();