{% extends "html/notebook/base_aux.html" %} {# INPUT: - worksheet - an instance of Worksheet - username - a string containing a username - filename_ - the name of the file - file_is_image - a boolean stating whether the file is an image - file_is_text - a boolean stating whether the file is a text file - text_file_content - a string containing the content of a text file #} {% block page_id %}datafile-page{% endblock %} {% block more_css %} {% endblock %} {% block more_javascript %} {% endblock %} {% set path = "/home/%s/data/%s"|format(worksheet.filename(), filename_) %} {% block sharebar_title %} {{ gettext('Data file') }}: {{ filename_ }} {% endblock %} {% block after_sharebar %}

{{ gettext('You may download %(f)s or create a link to this file in worksheet ', p=path, f=filename_) |safe }} {{ gettext('or delete %(f)s.', wf=worksheet.filename(), f=filename_) |safe }}

{{ gettext("Access %(f)s in this worksheet by typing DATA+'%(f)s'. Here DATA is a special variable that gives the exact path to all data files uploaded to this worksheet.", f=filename_) |safe }}


{% if file_is_image %}
{% elif file_is_text %}
{% endif %} {% endblock %}