{% extends "html/base_authenticated.html" %} {# INPUT: - pub -- a boolean stating whether to show in public mode. - typ -- a string stating what kind of worksheets this listing shows - worksheets -- list of Worksheet objects - readonly -- a boolean stating whether the user is read only #} {% if pub %} {% set worksheet_heading=gettext('Published Worksheets') %} {% elif typ == 'trash' %} {% set worksheet_heading=gettext('Deleted Worksheets') %} {% elif typ == 'active' %} {% set worksheet_heading=gettext('Active Worksheets') %} {% else %} {% set worksheet_heading=gettext('Archived Worksheets') %} {% endif %} {% block title %} {{ worksheet_heading }} {% endblock %} {% block page_id %}worksheet-listing-page{% endblock %} {% block body_classes %}{% if pub %}public{% endif %}{% endblock %} {% block javascript %} {% if not pub %} {% else %} {% endif %} {% endblock %} {% block main %} {% if readonly is defined and readonly %}

{{ gettext('Account is read only. You may download or delete worksheets or data.') }}

{% endif %}

{{ gettext('This notebook is deprecated. Click here for details.') }}

{% if pub is not defined or not pub %} {{ gettext('New Worksheet') }} {{ gettext('Upload') }} {{ gettext('Download All Active') }} {% endif %}
{% if not pub %}
{% if typ == 'archive' %} {% else %} {% endif %} {% if typ != 'trash' %} {% else %} {% endif %}
{{ gettext('Current Folder') }}: {{ gettext('Active') }} {{ gettext('Archived') }} {{ gettext('Trash') }} {% if typ == 'trash' %}
({{ gettext('Empty Trash') }})
{% endif %}
{% endif %}
{% if not pub %} {% else %} {% endif %} {% if not worksheets %} {% if pub %} {% elif typ == 'active' %} {% endif %} {% else %} {% for worksheet in worksheets %} {% set name = worksheet.filename() %} {% endfor %} {% endif %}
{{ gettext('Rating') }} {{ worksheet_heading }} {{ gettext('Owner') }} {{ '' if pub else ' / '+gettext('Collaborators') }} {{ gettext('Last Edited') }}
{{ gettext('There are no published worksheets.') }}
{{ gettext('Welcome to Sage! You can create a new worksheet, view published worksheets, or read the documentation.') }}
{% if pub %} {% if worksheet.rating() < 0 %} ---- {% else %} {{ worksheet.rating() }} {% endif %} {% else %} {# I'm removing this select since it is a massive performance killer and these serve no real purpose at all. Plus google docs got rid of the analogous menu. #} {% endif %} {% if not pub %} {{ worksheet.owner() }} {% else %} {{worksheet.worksheet_that_was_published().owner()}} {% endif %} {% if not pub and typ != 'trash' %} {% set shared = False %} {% if worksheet.collaborator_names() %} / {{ worksheet.collaborator_names(5) }} {% set shared = True %} {% endif %} {% if worksheet.viewer_names() %} / {{ worksheet.viewer_names(5) }} {% set shared = True %} {% endif %} {% if (worksheet.owner() != username) or username == 'admin' %} {% set shared = False %} {% endif %} {% if shared %} {% else %} {% endif %} {% if worksheet.has_published_version() %} ({{ gettext('published') }}) {% endif %} {% endif %} {{ worksheet.html_time_nice_edited(username) | safe }}
{% endblock %}