{% 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 #} {% if pub %} {% set worksheet_heading='Published Worksheets' %} {% elif typ == 'trash' %} {% set worksheet_heading='Deleted Worksheets' %} {% elif typ == 'active' %} {% set worksheet_heading='Active Worksheets' %} {% else %} {% set worksheet_heading='Archived Worksheets' %} {% endif %} {% block title %} {{ worksheet_heading }} {% endblock %} {% block page_id %}worksheet-listing-page{% endblock %} {% block javascript %} {% if not pub %} {% else %} {% endif %} {% endblock %} {% block main %}
{% if pub is not defined or not pub %} New Worksheet Upload Download All Active {% endif %}
{% if not pub %}
{% if typ == 'archive' %} {% else %} {% endif %} {% if typ != 'trash' %} {% else %} {% endif %} {% if not accounts %} {% endif %}
Current Folder: Active Archived Trash {% if typ == 'trash' %}
(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 %}
Rating {{ worksheet_heading }} Owner {{ '' if pub else ' / Collaborators' }} Last Edited
There are no published worksheets.
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() %} (published) {% endif %} {% endif %} {{ worksheet.html_time_since_last_edited() }}
{% endblock %}