api: Remove root_domain_uri from API page links.

These pages should be references the current server's UI anyway.
This commit is contained in:
Tim Abbott 2017-08-28 14:03:24 -07:00
parent a0a1fe1512
commit 126171cb76
4 changed files with 4 additions and 6 deletions

View File

@ -92,7 +92,6 @@ function _setup_page() {
zuliprc: 'zuliprc',
flaskbotrc: 'flaskbotrc',
timezones: moment.tz.names(),
root_domain_uri: page_params.root_domain_uri,
});
$(".settings-box").html(settings_tab);

View File

@ -1,7 +1,7 @@
<div id="bot-settings" class="settings-section" data-name="your-bots">
<div class="bot-settings-form">
<div class="tip">
{{#tr this}}Looking for our <a href="/integrations" target="_blank">Integrations</a> or <a href="__root_domain_uri__/api" target="_blank">API</a> documentation?{{/tr}}
{{#tr this}}Looking for our <a href="/integrations" target="_blank">Integrations</a> or <a href="/api" target="_blank">API</a> documentation?{{/tr}}
</div>
<div>

View File

@ -69,8 +69,7 @@ IGNORED_PHRASES = [
'<a href="/#streams">Streams page</a>.'),
(r'Looking for our '
'<a href="/integrations" target="_blank">Integrations</a> or '
'<a href="{{ root_domain_uri }}/api" target="_blank">API</a> '
'documentation?'),
'<a href="/api" target="_blank">API</a> documentation?'),
r'Most stream administration is done on the <a href="/#streams">Streams page</a>.',
r"one or more people...",
r"confirmation email",

View File

@ -134,7 +134,7 @@ class CheckCapitalizationTestCase(TestCase):
"Not ignored phrase",
('<p class="bot-settings-note padded-container"> Looking for our '
'<a href="/integrations" target="_blank">Integrations</a> or '
'<a href="{{ root_domain_uri }}/api" target="_blank">API</a> '
'<a href="/api" target="_blank">API</a> '
'documentation? </p>'),
]
errored, ignored = check_capitalization(strings)
@ -148,6 +148,6 @@ class CheckCapitalizationTestCase(TestCase):
"Some number 25MiB",
('<p class="bot-settings-note padded-container"> Looking '
'for our <a href="/integrations" target="_blank">'
'Integrations</a> or <a href="{{ root_domain_uri }}/api" '
'Integrations</a> or <a href="/api" '
'target="_blank">API</a> documentation? </p>'),
]))