{% extends "html/notebook/base.html" %} {# INPUT: - worksheet - an instance of Worksheet - notebook - an instance of Notebook which contains worksheet - username - a string containing a username #} {% block javascript %} {{ super() }} {% endblock %} {% block page_id %}guest-worksheet-page{% endblock %} {% block body_classes %}{% if conf['pub_interact'] %}active-worksheet{% endif %}{% endblock %} {% set original_worksheet = worksheet.worksheet_that_was_published() %} {% if original_worksheet.is_collaborator(username) or original_worksheet.is_owner(username) %} {% set edit_text = "Edit this." %} {% set edit_text = gettext('Edit this.') %} {% set url = original_worksheet.worksheet_command('') %} {% elif notebook.user_manager().user_is_guest(username) %} {% set edit_text = gettext('Log in to edit a copy.') %} {% set url = "/" %} {% else %} {% set edit_text = gettext('Edit a copy.') %} {% set url = "edit_published_page" %} {% endif %} {% set download_name = worksheet.download_name() %} {% block published_link_rel %} {% endblock %} {% block body %}