diff -r 000000000000 -r 40c8f766c9b8 src/cm/templates/site/text_list.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/templates/site/text_list.html Mon Nov 23 15:14:29 2009 +0100 @@ -0,0 +1,192 @@ +{% extends "site/layout/base_workspace.html" %} +{% load com %} +{% load i18n %} +{% load local_perms %} +{% load activity %} + +{% 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 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 }} +
+ {% 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 %} \ No newline at end of file