diff --git a/ietf/community/utils.py b/ietf/community/utils.py index 2d7ed5ef5..f773839c7 100644 --- a/ietf/community/utils.py +++ b/ietf/community/utils.py @@ -58,20 +58,6 @@ def can_manage_community_list(user, clist): return False -def augment_docs_with_tracking_info(docs, user): - """Add attribute to each document with whether the document is tracked - by the user or not.""" - - tracked = set() - - if user and user.is_authenticated: - clist = CommunityList.objects.filter(user=user).first() - if clist: - tracked.update(docs_tracked_by_community_list(clist).filter(pk__in=[ d.pk for d in docs ]).values_list("pk", flat=True)) - - for d in docs: - d.tracked_in_personal_community_list = d.pk in tracked - def reset_name_contains_index_for_rule(rule): if not rule.rule_type == "name_contains": return diff --git a/ietf/doc/tests_review.py b/ietf/doc/tests_review.py index 90974c5d9..f336627dc 100644 --- a/ietf/doc/tests_review.py +++ b/ietf/doc/tests_review.py @@ -22,7 +22,8 @@ from pyquery import PyQuery import debug # pyflakes:ignore import ietf.review.mailarch -from ietf.doc.factories import NewRevisionDocEventFactory, WgDraftFactory, WgRfcFactory, ReviewFactory +from ietf.doc.factories import NewRevisionDocEventFactory, WgDraftFactory, WgRfcFactory, \ + ReviewFactory, DocumentFactory from ietf.doc.models import DocumentAuthor, RelatedDocument, DocEvent, ReviewRequestDocEvent, ReviewAssignmentDocEvent from ietf.group.factories import RoleFactory, ReviewTeamFactory from ietf.group.models import Group @@ -479,7 +480,7 @@ class ReviewTests(TestCase): login_testing_unauthorized(self, "reviewsecretary", reject_url) r = self.client.get(reject_url) self.assertEqual(r.status_code, 200) - self.assertContains(r, str(assignment.reviewer.person)) + self.assertContains(r, assignment.reviewer.person.plain_name()) self.assertNotContains(r, 'can not be rejected') self.assertContains(r, ' + {% endbuttons %} + + +{% endblock %} diff --git a/ietf/templates/doc/review/review_wishes_remove.html b/ietf/templates/doc/review/review_wishes_remove.html new file mode 100644 index 000000000..b9e203fe6 --- /dev/null +++ b/ietf/templates/doc/review/review_wishes_remove.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} +{# Copyright The IETF Trust 2016, All Rights Reserved #} +{% load origin bootstrap3 static %} + +{% block title %}Remove {{ doc.name }} from your review wishes{% endblock %} + +{% block content %} + {% origin %} +

Remove {{ doc.name }} from your review wishes +

+ +
+ {% csrf_token %} + + {% buttons %} + + {% endbuttons %} +
+ +{% endblock %} diff --git a/ietf/templates/doc/search/search_result_row.html b/ietf/templates/doc/search/search_result_row.html index b326c9cdc..9d7a61e60 100644 --- a/ietf/templates/doc/search/search_result_row.html +++ b/ietf/templates/doc/search/search_result_row.html @@ -21,6 +21,16 @@
{% endif %} + {% if user.review_teams %} + + + + + + +
+ {% endif %} + {% for session in doc.sessions %}