mirror of
https://github.com/google/nomulus.git
synced 2025-07-23 19:20:44 +02:00
Only show OT&E admin actions when not in production environment
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=237061813
This commit is contained in:
parent
d42eeb3755
commit
204cb8e886
10 changed files with 38 additions and 19 deletions
|
@ -18,6 +18,7 @@
|
|||
{template .settings}
|
||||
{@param allowedTlds: list<string>}
|
||||
{@param type: string} // the registrar type, e.g. REAL, OTE, TEST, etc.
|
||||
{@param environment: string} // the server environment e.g. PRODUCTION, SANDBOX
|
||||
<form name="item" class="{css('item')} {css('registrar')}">
|
||||
<h1>Administrator settings</h1>
|
||||
<table>
|
||||
|
@ -42,16 +43,20 @@
|
|||
class="{css('kd-button')} {css('btn-add')}">Add</button>
|
||||
</div>
|
||||
</div>
|
||||
<tr class="{css('kd-settings-pane-section')}">
|
||||
<td>
|
||||
<label class="{css('setting-label')}">OT&E setup page</label>
|
||||
<td class="{css('setting')}">
|
||||
<p>Generate new OT&E accounts <a href="/registrar-ote-setup">here</a>
|
||||
</p></td>
|
||||
</tr>
|
||||
{call .oteStatus}
|
||||
{param registrarType: $type /}
|
||||
{/call}
|
||||
{if $environment != 'PRODUCTION'}
|
||||
<tr class="{css('kd-settings-pane-section')}">
|
||||
<td>
|
||||
<label class="{css('setting-label')}">OT&E setup page</label>
|
||||
<td class="{css('setting')}">
|
||||
<p>Generate new OT&E accounts <a href="/registrar-ote-setup">here</a>
|
||||
</p></td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $type == 'OTE'}
|
||||
{call .oteStatus}
|
||||
{param registrarType: $type /}
|
||||
{/call}
|
||||
{/if}
|
||||
<tr class="{css('kd-settings-pane-section')}">
|
||||
<td>
|
||||
<label class="{css('setting-label')}">Create new registrar</label>
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
{@param announcementsEmail: string}
|
||||
{@param supportPhoneNumber: string}
|
||||
{@param technicalDocsUrl: string}
|
||||
{@param environment: string}
|
||||
|
||||
{call registry.soy.console.header}
|
||||
{param app: 'registrar' /}
|
||||
|
@ -82,7 +83,8 @@
|
|||
{$supportEmail},
|
||||
{$announcementsEmail},
|
||||
{$supportPhoneNumber},
|
||||
{$technicalDocsUrl});
|
||||
{$technicalDocsUrl},
|
||||
{$environment});
|
||||
</script>
|
||||
{/if}
|
||||
{/template}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue