mirror of https://github.com/zulip/zulip.git
Change links to /api to be relative or with {{ realm_uri }}.
This commit is contained in:
parent
b41fc75767
commit
bba2465f89
|
@ -359,7 +359,7 @@ function finale(skip) {
|
||||||
if (page_params.prompt_for_invites) {
|
if (page_params.prompt_for_invites) {
|
||||||
alert_contents = "<i class='icon-vector-heart alert-icon'></i>It's lonely in here! <a href='#invite-user' data-toggle='modal'>Invite some users</a>.";
|
alert_contents = "<i class='icon-vector-heart alert-icon'></i>It's lonely in here! <a href='#invite-user' data-toggle='modal'>Invite some users</a>.";
|
||||||
} else {
|
} else {
|
||||||
alert_contents = "<i class='icon-vector-desktop alert-icon'></i>What's better than " + page_params.product_name + " in your browser? The <a href='" + page_params.server_uri + "/apps' target='_blank'>"+ page_params.product_name + " desktop app</a>!";
|
alert_contents = "<i class='icon-vector-desktop alert-icon'></i>What's better than " + page_params.product_name + " in your browser? The <a href='/apps' target='_blank'>"+ page_params.product_name + " desktop app</a>!";
|
||||||
}
|
}
|
||||||
show_app_alert(alert_contents);
|
show_app_alert(alert_contents);
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ function finale(skip) {
|
||||||
if (stream_data.in_home_view(page_params.notifications_stream)) {
|
if (stream_data.in_home_view(page_params.notifications_stream)) {
|
||||||
send_delayed_stream_message(page_params.notifications_stream, "welcome", "Practice sending sending some messages here, or starting a new topic.", 15);
|
send_delayed_stream_message(page_params.notifications_stream, "welcome", "Practice sending sending some messages here, or starting a new topic.", 15);
|
||||||
send_delayed_stream_message(page_params.notifications_stream, page_params.product_name + " tips", "Here's a message on a new topic: `" + page_params.product_name + " tips`.\n\nAs you settle into " + page_params.product_name + ", customize your account and notifications on your [Settings page](#settings).", 30);
|
send_delayed_stream_message(page_params.notifications_stream, page_params.product_name + " tips", "Here's a message on a new topic: `" + page_params.product_name + " tips`.\n\nAs you settle into " + page_params.product_name + ", customize your account and notifications on your [Settings page](#settings).", 30);
|
||||||
send_delayed_stream_message(page_params.notifications_stream, page_params.product_name + " tips", "You might also enjoy:\n\n* Our lightweight !modal_link(#markdown-help, message formatting) (including emoji! :thumbsup:)\n* !modal_link(#keyboard-shortcuts, Keyboard shortcuts)\n* [Desktop and mobile apps](" + page_params.server_uri + "/apps)", 40);
|
send_delayed_stream_message(page_params.notifications_stream, page_params.product_name + " tips", "You might also enjoy:\n\n* Our lightweight !modal_link(#markdown-help, message formatting) (including emoji! :thumbsup:)\n* !modal_link(#keyboard-shortcuts, Keyboard shortcuts)\n* [Desktop and mobile apps](/apps)", 40);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (work_stream !== undefined) {
|
if (work_stream !== undefined) {
|
||||||
|
|
|
@ -309,7 +309,7 @@
|
||||||
<div class="bot-settings-form">
|
<div class="bot-settings-form">
|
||||||
{{#tr this}}
|
{{#tr this}}
|
||||||
<p class="bot-settings-note">Looking for our <a href="/integrations" target="_blank">Integrations</a>
|
<p class="bot-settings-note">Looking for our <a href="/integrations" target="_blank">Integrations</a>
|
||||||
or <a href="{{ server_uri }}/api" target="_blank">API</a> documentation?</p>
|
or <a href="/api" target="_blank">API</a> documentation?</p>
|
||||||
{{/tr}}
|
{{/tr}}
|
||||||
|
|
||||||
<ol id="bots_list">
|
<ol id="bots_list">
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<p><a href="{{ server_uri }}/hello" style="color:#08c">{{ server_uri }}/hello</a> has a nice overview of what we're up to, but here are a few tips that'll help you get the most out of it:</p>
|
<p><a href="{{ server_uri }}/hello" style="color:#08c">{{ server_uri }}/hello</a> has a nice overview of what we're up to, but here are a few tips that'll help you get the most out of it:</p>
|
||||||
|
|
||||||
<ol>
|
<ol>
|
||||||
<li>Zulip works best when it's always open, so <a href="{{ server_uri }}/apps" style="color:#08c">grab our apps</a>! (Mac, Windows, Linux, Android, iOS)</li>
|
<li>Zulip works best when it's always open, so <a href="{{ realm_uri }}/apps" style="color:#08c">grab our apps</a>! (Mac, Windows, Linux, Android, iOS)</li>
|
||||||
|
|
||||||
<li>Want to <b>share files</b> in Zulip? No problem! Start a new message and click the paperclip, or just drag-and-drop the file into the textbox.</li>
|
<li>Want to <b>share files</b> in Zulip? No problem! Start a new message and click the paperclip, or just drag-and-drop the file into the textbox.</li>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ Welcome to Zulip.
|
||||||
{{ server_uri }}/hello has a nice overview of what we're up to, but here are a couple tips that'll help you get the most out of it:
|
{{ server_uri }}/hello has a nice overview of what we're up to, but here are a couple tips that'll help you get the most out of it:
|
||||||
|
|
||||||
1. Zulip works best when it's always open, so grab our apps! (Mac, Windows, Linux, Android, iOS)
|
1. Zulip works best when it's always open, so grab our apps! (Mac, Windows, Linux, Android, iOS)
|
||||||
{{ server_uri }}/apps
|
{{ realm_uri }}/apps
|
||||||
|
|
||||||
2. Want to share files in Zulip? No problem! Start a new message and click the paperclip, or just drag-and-drop the file into the textbox.
|
2. Want to share files in Zulip? No problem! Start a new message and click the paperclip, or just drag-and-drop the file into the textbox.
|
||||||
|
|
||||||
|
|
|
@ -138,13 +138,13 @@
|
||||||
<div class="feature-block left">
|
<div class="feature-block left">
|
||||||
<i class="icon-vector-mobile-phone icon-vector-3x feature-icon"></i>
|
<i class="icon-vector-mobile-phone icon-vector-3x feature-icon"></i>
|
||||||
<h4>{% trans %}Mobile apps{% endtrans %}</h4>
|
<h4>{% trans %}Mobile apps{% endtrans %}</h4>
|
||||||
<p>{% trans %}Check Zulip on the go with native <a href="{{ server_uri }}/apps">iOS and
|
<p>{% trans %}Check Zulip on the go with native <a href="/apps">iOS and
|
||||||
Android apps</a>{% endtrans %}.</p>
|
Android apps</a>{% endtrans %}.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="feature-block">
|
<div class="feature-block">
|
||||||
<i class="icon-vector-desktop icon-vector-3x feature-icon"></i>
|
<i class="icon-vector-desktop icon-vector-3x feature-icon"></i>
|
||||||
<h4>{% trans %}Desktop apps{% endtrans %}</h4>
|
<h4>{% trans %}Desktop apps{% endtrans %}</h4>
|
||||||
<p>{% trans %}Prefer Zulip in its own window and rich, OS-level notifications?
|
<p>{% trans %}Prefer Zulip in its own window and rich, OS-level notifications?
|
||||||
Enjoy <a href="{{ server_uri }}/apps">Zulip on your desktop</a>{% endtrans %}.</p>
|
Enjoy <a href="/apps">Zulip on your desktop</a>{% endtrans %}.</p>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
</li>
|
</li>
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li title="Desktop & mobile apps">
|
<li title="Desktop & mobile apps">
|
||||||
<a href="{{ server_uri }}/apps" target="_blank" role="button">
|
<a href="/apps" target="_blank" role="button">
|
||||||
<i class="icon-vector-desktop"></i> {{ _('Desktop & mobile apps') }}
|
<i class="icon-vector-desktop"></i> {{ _('Desktop & mobile apps') }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li title="API documentation">
|
<li title="API documentation">
|
||||||
<a href="{{ server_uri }}/api" target="_blank" role="button">
|
<a href="/api" target="_blank" role="button">
|
||||||
<i class="icon-vector-sitemap"></i> {{ _('API documentation') }}
|
<i class="icon-vector-sitemap"></i> {{ _('API documentation') }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue