equal
deleted
inserted
replaced
1 {% extends "site/layout/base_workspace.html" %} |
1 {% extends "site/layout/base_workspace.html" %} |
2 {% load com %} |
2 {% load com %} |
3 {% load i18n %} |
3 {% load i18n %} |
4 {% load local_perms %} |
4 {% load local_perms %} |
5 {% load activity %} |
5 {% load activity %} |
|
6 {% load tagging_tags %} |
6 |
7 |
7 {% block head %} |
8 {% block head %} |
8 {% endblock %} |
9 {% endblock %} |
9 |
10 |
10 {% block title %} |
11 {% block title %} |
39 <li><a href="{% url text-create-content %}">{% blocktrans %}Write a text{% endblocktrans %}</a></li> |
40 <li><a href="{% url text-create-content %}">{% blocktrans %}Write a text{% endblocktrans %}</a></li> |
40 <li> / </li> |
41 <li> / </li> |
41 <li><a href="{% url text-create-upload %}">{% blocktrans %}Upload a text{% endblocktrans %}</a></li> |
42 <li><a href="{% url text-create-upload %}">{% blocktrans %}Upload a text{% endblocktrans %}</a></li> |
42 {% endif %} |
43 {% endif %} |
43 </ul> |
44 </ul> |
|
45 |
|
46 <form id="filter_form" action="." method="get"> |
|
47 <table summary="{% blocktrans %}People' list{% endblocktrans %}" class="large_table"> |
|
48 <tr> |
|
49 <td> |
|
50 {% blocktrans %}Filter by tag:{% endblocktrans %} |
|
51 <select id="tag_selected" name="tag_selected"> |
|
52 <option {% if not tag_selected %}selected="selected"{% endif %} value="0">- {% blocktrans %}All{% endblocktrans %} -</option> |
|
53 |
|
54 {% for tag in tag_list %} |
|
55 <option {% ifequal tag_selected tag.name %}selected="selected"{% endifequal %} value="{{ tag.name }}">{{ tag.name }}</option> |
|
56 {% endfor %} |
|
57 </select> |
|
58 </td> |
|
59 |
|
60 </tr> |
|
61 </table> |
|
62 </form> |
|
63 |
|
64 <script type="text/javascript"> |
|
65 <!-- |
|
66 $(function() { |
|
67 $("#tag_selected").change(function () { |
|
68 $("#filter_form").submit(); |
|
69 }); |
|
70 }) ; |
|
71 --> |
|
72 </script> |
44 |
73 |
45 {% if object_list %} |
74 {% if object_list %} |
46 <form id="texts_form" action="." method="post"> |
75 <form id="texts_form" action="." method="post"> |
47 |
76 |
48 {% if can_manage_workspace %} |
77 {% if can_manage_workspace %} |
120 |
149 |
121 <tr class="text-{{ text.key }} {% cycle 'odd' 'even' %}"> |
150 <tr class="text-{{ text.key }} {% cycle 'odd' 'even' %}"> |
122 {% if can_manage_workspace %}<td><input type="checkbox" class="text_check" name="check-{{ text.key }}"/></td>{% endif %} |
151 {% if can_manage_workspace %}<td><input type="checkbox" class="text_check" name="check-{{ text.key }}"/></td>{% endif %} |
123 <td> |
152 <td> |
124 <a class="main_object_title" href="{% url text-view text.key %}">{{ text.title }}</a> |
153 <a class="main_object_title" href="{% url text-view text.key %}">{{ text.title }}</a> |
|
154 |
|
155 {% tags_for_object text.last_text_version as tag_list %} |
|
156 {% if tag_list %}<div class="tag_list>">{% blocktrans %}tags:{% endblocktrans %} {% for tag in tag_list %}<a class="tag" title="{% blocktrans with tag.name as tag_name %}Filter by tag: {{ tag_name }}{% endblocktrans %}" href="?{% newparams 'tag_selected' tag.name %}"">{{ tag.name }}</a> {% endfor %}</div>{% endif %} |
|
157 |
125 <div class="hidden-text-actions text-actions-{{ text.key }}"> |
158 <div class="hidden-text-actions text-actions-{{ text.key }}"> |
126 <a href="{% url text-view text.key %}">{% blocktrans %}View{% endblocktrans %}</a> | |
159 <a href="{% url text-view text.key %}">{% blocktrans %}View{% endblocktrans %}</a> | |
127 {% if can_edit_text %}<a href="{% url text-edit text.key %}">{% blocktrans %}Edit{% endblocktrans %}</a> | {% endif %} |
160 {% if can_edit_text %}<a href="{% url text-edit text.key %}">{% blocktrans %}Edit{% endblocktrans %}</a> | {% endif %} |
128 {% if can_delete_text %}<a id="text-delete-{{ text.key }}" href="#">{% blocktrans %}Delete{% endblocktrans %}</a> | |
161 {% if can_delete_text %}<a id="text-delete-{{ text.key }}" href="#">{% blocktrans %}Delete{% endblocktrans %}</a> | |
129 <script type="text/javascript"> |
162 <script type="text/javascript"> |