{% extends "site/layout/base_workspace.html" %} {% load com %} {% load i18n %} {% load local_perms %} {% load activity %} {% load tagging_tags %} {% block head %} {% endblock %} {% block title %} {% blocktrans %}Texts{% endblocktrans %} {% endblock %} {% block main %} {% get_local_perm request can_create_text as can_create_text %} {% get_local_perm request can_manage_workspace as can_manage_workspace %}
{% if tag_list %}
{% blocktrans %}Filter by tag:{% endblocktrans %}
{% endif %} {% if object_list %}
{% if can_manage_workspace %} {% endif %} {% include "site/macros/paginator.html" %}
{% if can_manage_workspace %} {% endif %} {% if can_manage_workspace %}{% endif %} {% for text in object_list %} {% get_local_text_perm request text can_edit_text as can_edit_text %} {% get_local_text_perm request text can_delete_text as can_delete_text %} {% get_local_text_perm request text can_manage_text as can_manage_text %} {% if can_manage_workspace %}{% endif %} {% if can_manage_workspace %} {% endif %} {% endfor %}
{% up_down title %}{% blocktrans %}Text{% endblocktrans %}{% endup_down %} {% blocktrans %}Author{% endblocktrans %} {% up_down -modified %}{% blocktrans %}Modified{% endblocktrans %}{% endup_down %} {% blocktrans %}# comments{% endblocktrans %}{% blocktrans %}Last week activity{% endblocktrans %}
{{ text.title }} {% tags_for_object text.last_text_version as tag_list %} {% if tag_list %}
{% blocktrans %}tags:{% endblocktrans %} {% for tag in tag_list %}{{ tag.name }} {% endfor %}
{% endif %}
{% blocktrans %}View{% endblocktrans %} {% if can_edit_text %} | {% blocktrans %}Edit{% endblocktrans %} | {% endif %} {% if can_delete_text %}{% blocktrans %}Delete{% endblocktrans %} | {% endif %} {% if can_manage_text %}{% blocktrans %}Users{% endblocktrans %} | {% endif %} {% if can_manage_text %}{% blocktrans %}Settings{% endblocktrans %}{% endif %}
{% if text.user and can_manage_workspace %}{{ text.get_name }} {% else %} {{ text.get_name }} {% endif %} {{ text.modified|local_date }} {{ text|nb_comments:request }}{% blocktrans %}Loading...{% endblocktrans %}
{% else %} {% blocktrans %}No texts yet{% endblocktrans %} {% endif %}
{% endblock %}