mirror of https://github.com/zulip/zulip.git
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:
parent
a0a1fe1512
commit
126171cb76
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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>'),
|
||||
]))
|
||||
|
|
Loading…
Reference in New Issue