mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Make registrar console logo non-Google-Registry-specific
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=134691115
This commit is contained in:
parent
f86c7c161c
commit
bf75c4ca48
16 changed files with 70 additions and 23 deletions
|
@ -81,6 +81,34 @@ public final class ConfigModule {
|
|||
return config.getProjectId();
|
||||
}
|
||||
|
||||
/** The filename of the logo to be displayed in the header of the registrar console. */
|
||||
@Provides
|
||||
@Config("logoFilename")
|
||||
public static String provideLogoFilename(RegistryEnvironment environment) {
|
||||
switch (environment) {
|
||||
case UNITTEST:
|
||||
case LOCAL:
|
||||
return "logo.png";
|
||||
default:
|
||||
// Change this to the filename of your logo.
|
||||
return "google_registry.png";
|
||||
}
|
||||
}
|
||||
|
||||
/** The product name of this specific registry. Used throughout the registrar console. */
|
||||
@Provides
|
||||
@Config("productName")
|
||||
public static String provideProductName(RegistryEnvironment environment) {
|
||||
switch (environment) {
|
||||
case UNITTEST:
|
||||
case LOCAL:
|
||||
return "Domain Registry";
|
||||
default:
|
||||
// Change this to the name of your product.
|
||||
return "Google Registry";
|
||||
}
|
||||
}
|
||||
|
||||
/** @see RegistryConfig#getZoneFilesBucket() */
|
||||
@Provides
|
||||
@Config("zoneFilesBucket")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue