X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/03460135dbc5d86b366424da72053a853db4ce34..390a606c867e39c828628322621419d9d2bce453:/forum/skins/default/templates/osqaadmin/nodeman.html diff --git a/forum/skins/default/templates/osqaadmin/nodeman.html b/forum/skins/default/templates/osqaadmin/nodeman.html index 9e6c194..af8d1ce 100644 --- a/forum/skins/default/templates/osqaadmin/nodeman.html +++ b/forum/skins/default/templates/osqaadmin/nodeman.html @@ -1,7 +1,6 @@ {% extends basetemplate %} -{% load i18n %} -{% load user_tags %} +{% load i18n user_tags extra_tags %} {% block adminjs %} + + + + {% endblock %} {% block subtitle %} @@ -41,12 +184,25 @@
@@ -69,31 +225,131 @@ {% endfor %} +

{% trans "By author(s)" %}

+ {% if not authors.count %} + {% trans "No users selected, use the box bellow to add users to the filter." %} + {% else %} + + {% trans "Click on the cross next to a user name to remove it from the filter." %} + {% endif %} + + +

{% trans "By tag(s)" %}

+ {% if not tags.count %} + {% trans "No tags selected, use the box bellow to add tags to the filter." %} + {% else %} + + {% trans "Click on the cross next to a tag name to remove it from the filter." %} + {% endif %} + + +

{% trans "Pre defined" %}

+ {% if not settings.NODE_MAN_FILTERS %} + {% trans "There are no saved filters. Click bellow to add." %} + {% endif %} + +
+ + +
+ + {% comment %}

{% trans "Show" %}

+
+
{{ show_form.show }}
+ +
{% endcomment %}
-
+
+ + +
+ {% declare %} + current_sort = nodes.paginator.current_sort + added_at = current_sort == "added_at" and "descending" or (current_sort == "added_at_asc" and "ascending" or "") + score = current_sort == "score" and "descending" or (current_sort == "score_asc" and "ascending" or "") + act_at = current_sort == "act_at" and "descending" or (current_sort == "act_at_asc" and "ascending" or "") + + added_at_link = current_sort == "added_at" and nodes.paginator.added_at_asc_sort_link or nodes.paginator.added_at_sort_link + score_link = current_sort == "score" and nodes.paginator.score_asc_sort_link or nodes.paginator.score_sort_link + act_at_link = current_sort == "act_at" and nodes.paginator.act_at_asc_sort_link or nodes.paginator.act_at_sort_link + {% enddeclare %} + {% spaceless %} {% ifequal filter_form.node_type.data "all" %} {% endifequal %} - + + + + + + + + {% endspaceless %} {% for node in nodes.paginator.page %} - + {% ifequal filter_form.node_type.data "all" %} {% endifequal %} - + + + + + + + {% endfor %}
{% trans "Type" %}{% trans "Title" %}{% trans "Summary" %}{% trans "State" %} {% trans "Author" %} + {% trans "Added at" %} + + {% trans "Score" %} + {% trans "Last acivity by" %} + {% trans "Last activity at" %} + {% trans "Tags" %}
{{ node.friendly_name }}{{ node.headline }} + {{ node.headline }}
+ {{ node.summary }} +
{{ node.state_list|join:", " }} {{ node.author.username }}{% diff_date node.added_at %}{{ node.score }}{{ node.last_activity_by.username }}{% diff_date node.last_activity_at %} + {% for t in node.tags.all %} + {% if t in tags %}{{ t.name }} + {% else %}{{ t.name }}{% endif %} + {% endfor %} +