{% 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 %}
{% else %} | Rating | {% endif %}{{ 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 worksheet.compute_process_has_been_started() %}(running) {% endif %} {{ worksheet.truncated_name(50) | escape}} {% if not pub and worksheet.is_published() %}(Published){% 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 %} Add or Delete {% else %} Share now {% endif %} {% if worksheet.has_published_version() %} (published) {% endif %} {% endif %} | {{ worksheet.html_time_since_last_edited() }} |