tutorial: Remove tutorial_finale.

Was already orphaned, since skip is always true. This is just removing the
code.
This commit is contained in:
Rishi Gupta 2017-07-17 13:57:58 -07:00 committed by Tim Abbott
parent 0286a41c4c
commit 852bbfa16a
5 changed files with 3 additions and 34 deletions

View File

@ -35,21 +35,8 @@ function set_tutorial_status(status, callback) {
}); });
} }
function finale(skip) { function finale() {
var finale_modal = $("#tutorial-finale"); $(".screen").css({opacity: 0.0, width: 0, height: 0});
if (skip) {
finale_modal.modal("hide");
$(".screen").css({opacity: 0.0, width: 0, height: 0});
} else {
$(".screen").css({opacity: 0.0});
finale_modal.css("z-index", 20001);
finale_modal.modal("show");
$("#tutorial-get-started").click(function () {
finale_modal.modal("hide");
$(".screen").css({opacity: 0.0, width: 0, height: 0});
}).focus();
}
// Restore your actual stream colors // Restore your actual stream colors
set_tutorial_status("finished"); set_tutorial_status("finished");
@ -73,7 +60,7 @@ exports.start = function () {
stream_color.default_color = tutorial_default_color; stream_color.default_color = tutorial_default_color;
disable_event_handlers(); disable_event_handlers();
set_tutorial_status("started"); set_tutorial_status("started");
finale(true); finale();
}; };
exports.initialize = function () { exports.initialize = function () {

View File

@ -152,7 +152,6 @@ var page_params = {{ page_params }};
{% include "zerver/invite_user.html" %} {% include "zerver/invite_user.html" %}
{% include "zerver/bankruptcy.html" %} {% include "zerver/bankruptcy.html" %}
{% include "zerver/logout.html" %} {% include "zerver/logout.html" %}
{% include "zerver/tutorial_finale.html" %}
<div class='notifications top-right'></div> <div class='notifications top-right'></div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -1,15 +0,0 @@
<div class="modal hide" id="tutorial-finale" tabindex="-1" role="dialog"
aria-labelledby="tutorial-finale-label" aria-hidden="true">
<div class="modal-header">
<h3 id="tutorial-finale-label">{% trans %}Welcome to Zulip{% endtrans %}</h3>
</div>
<div class="modal-body">
<p>{% trans %}Streams, topics, and narrowing make Zulip conversations
efficient and productive.{% endtrans %}</p>
<p>{% trans %}That's all there is to it, so let's get started!{% endtrans %}</p>
</div>
<div class="modal-footer">
<button class="btn btn-primary" type="submit" id="tutorial-get-started">{% trans %}Get started{% endtrans %}</button>
</div>
</div>

View File

@ -25,7 +25,6 @@ class HomeTest(ZulipTestCase):
html_bits = [ html_bits = [
'Compose your message here...', 'Compose your message here...',
'Exclude messages with topic', 'Exclude messages with topic',
'Get started',
'Keyboard shortcuts', 'Keyboard shortcuts',
'Loading...', 'Loading...',
'Manage streams', 'Manage streams',

View File

@ -79,7 +79,6 @@ class TemplateTestCase(ZulipTestCase):
'zerver/settings_sidebar.html', 'zerver/settings_sidebar.html',
'zerver/stream_creation_prompt.html', 'zerver/stream_creation_prompt.html',
'zerver/subscriptions.html', 'zerver/subscriptions.html',
'zerver/tutorial_finale.html',
'zerver/message_history.html', 'zerver/message_history.html',
'zerver/delete_message.html', 'zerver/delete_message.html',
] ]