{% 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 %}
{% else %} | {{ gettext('Rating') }} | {% endif %}{{ 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 worksheet.compute_process_has_been_started() %}({{ gettext('running') }}){% endif %} {{ worksheet.truncated_name(50) }} {% 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 %} {{ gettext('Add or Delete') }} {% else %} {{ gettext('Share now') }} {% endif %} {% if worksheet.has_published_version() %} ({{ gettext('published') }}) {% endif %} {% endif %} | {{ worksheet.html_time_nice_edited(username) | safe }} |