diff --git a/ietf/dbtemplate/templates/dbtemplate/template_edit.html b/ietf/dbtemplate/templates/dbtemplate/template_edit.html index f0c3b53c7..d53a0e416 100644 --- a/ietf/dbtemplate/templates/dbtemplate/template_edit.html +++ b/ietf/dbtemplate/templates/dbtemplate/template_edit.html @@ -39,7 +39,7 @@ - + diff --git a/ietf/doc/templatetags/ietf_filters.py b/ietf/doc/templatetags/ietf_filters.py index 05e6fdcb0..5d5a210c9 100644 --- a/ietf/doc/templatetags/ietf_filters.py +++ b/ietf/doc/templatetags/ietf_filters.py @@ -426,13 +426,13 @@ def format_snippet(text, trunc_words=25): full = keep_spacing(collapsebr(linebreaksbr(mark_safe(sanitize_fragment(text))))) snippet = truncatewords_html(full, trunc_words) if snippet != full: - return mark_safe('
%s
' % (snippet, full)) + return mark_safe('
%s
' % (snippet, full)) return full @register.simple_tag def doc_edit_button(url_name, *args, **kwargs): """Given URL name/args/kwargs, looks up the URL just like "url" tag and returns a properly formatted button for the document material tables.""" - return mark_safe('Edit' % (urlreverse(url_name, args=args, kwargs=kwargs))) + return mark_safe('Edit' % (urlreverse(url_name, args=args, kwargs=kwargs))) @register.filter def textify(text): diff --git a/ietf/doc/tests.py b/ietf/doc/tests.py index 633a6e55c..8bcc5b1c7 100644 --- a/ietf/doc/tests.py +++ b/ietf/doc/tests.py @@ -2103,9 +2103,9 @@ class DocumentMeetingTests(TestCase): self.assertEqual(response.status_code, 200) q = PyQuery(response.content) self.assertTrue(q('#addsessionsbutton')) - self.assertEqual(1,len(q("#inprogressmeets a.btn-default:contains('Remove document')"))) - self.assertEqual(1,len(q("#futuremeets a.btn-default:contains('Remove document')"))) - self.assertEqual(1,len(q("#pastmeets a.btn-default:contains('Remove document')"))) + self.assertEqual(1,len(q("#inprogressmeets a.btn-primary:contains('Remove document')"))) + self.assertEqual(1,len(q("#futuremeets a.btn-primary:contains('Remove document')"))) + self.assertEqual(1,len(q("#pastmeets a.btn-primary:contains('Remove document')"))) self.assertEqual(1,len(q("#pastmeets a.btn-warning:contains('Remove document')"))) self.client.login(username=self.group_chair.user.username,password='%s+password'%self.group_chair.user.username) @@ -2113,9 +2113,9 @@ class DocumentMeetingTests(TestCase): self.assertEqual(response.status_code, 200) q = PyQuery(response.content) self.assertTrue(q('#addsessionsbutton')) - self.assertEqual(1,len(q("#inprogressmeets a.btn-default:contains('Remove document')"))) - self.assertEqual(1,len(q("#futuremeets a.btn-default:contains('Remove document')"))) - self.assertEqual(1,len(q("#pastmeets a.btn-default:contains('Remove document')"))) + self.assertEqual(1,len(q("#inprogressmeets a.btn-primary:contains('Remove document')"))) + self.assertEqual(1,len(q("#futuremeets a.btn-primary:contains('Remove document')"))) + self.assertEqual(1,len(q("#pastmeets a.btn-primary:contains('Remove document')"))) self.assertTrue(q('#pastmeets')) self.assertFalse(q("#pastmeets a.btn-warning:contains('Remove document')")) diff --git a/ietf/liaisons/widgets.py b/ietf/liaisons/widgets.py index 9581679b2..fe0f15e36 100644 --- a/ietf/liaisons/widgets.py +++ b/ietf/liaisons/widgets.py @@ -37,8 +37,8 @@ class ShowAttachmentsWidget(Widget): if value and isinstance(value, QuerySet): for attachment in value: html += '%s ' % (conditional_escape(attachment.document.get_href()), conditional_escape(attachment.document.title)) - html += 'Edit '.format(urlreverse("ietf.liaisons.views.liaison_edit_attachment", kwargs={'object_id':attachment.statement.pk,'doc_id':attachment.document.pk})) - html += 'Delete '.format(urlreverse("ietf.liaisons.views.liaison_delete_attachment", kwargs={'object_id':attachment.statement.pk,'attach_id':attachment.pk})) + html += 'Edit '.format(urlreverse("ietf.liaisons.views.liaison_edit_attachment", kwargs={'object_id':attachment.statement.pk,'doc_id':attachment.document.pk})) + html += 'Delete '.format(urlreverse("ietf.liaisons.views.liaison_delete_attachment", kwargs={'object_id':attachment.statement.pk,'attach_id':attachment.pk})) html += '
' else: html += 'No files attached' diff --git a/ietf/static/css/list.scss b/ietf/static/css/list.scss index 47f551ac6..4aedb2c5c 100644 --- a/ietf/static/css/list.scss +++ b/ietf/static/css/list.scss @@ -6,7 +6,6 @@ table .sort { white-space: nowrap; - padding-right: .5em; cursor: pointer; } @@ -18,6 +17,7 @@ table .sort:hover { table .sort:before { font-family: 'bootstrap-icons'; content: '\f127'; + padding-right: .25em; } table .sort.asc:before { diff --git a/ietf/static/js/list.js b/ietf/static/js/list.js index 1aa758d7d..f906fc1f5 100644 --- a/ietf/static/js/list.js +++ b/ietf/static/js/list.js @@ -6,10 +6,10 @@ function text_sort(a, b, options) { return dummy.utils.naturalSort.caseInsensitive($($.parseHTML(a.values()[options.valueName])) .text() .trim() - .replaceAll(/\w+/g, ' '), $($.parseHTML(b.values()[options.valueName])) + .replaceAll(/\s+/g, ' '), $($.parseHTML(b.values()[options.valueName])) .text() .trim() - .replaceAll(/\w+/g, ' ')); + .replaceAll(/\s+/g, ' ')); } $(document) diff --git a/ietf/templates/base.html b/ietf/templates/base.html index b8f6812c8..bf23056de 100644 --- a/ietf/templates/base.html +++ b/ietf/templates/base.html @@ -123,7 +123,7 @@ {% block js %}{% endblock js %} {% if debug %} - + {% endif %} diff --git a/ietf/templates/community/manage_list.html b/ietf/templates/community/manage_list.html index 1fc6fe6e9..3c9312c11 100644 --- a/ietf/templates/community/manage_list.html +++ b/ietf/templates/community/manage_list.html @@ -36,7 +36,7 @@
{% csrf_token %} - +
@@ -91,7 +91,7 @@
{% csrf_token %} - +
diff --git a/ietf/templates/debug.html b/ietf/templates/debug.html index a047ab549..e6f6554bd 100644 --- a/ietf/templates/debug.html +++ b/ietf/templates/debug.html @@ -9,7 +9,7 @@

{{ sql_queries|length }} queries ({{ sql_queries|timesum }}s) {% if sql_queries|length != 0 %} - Show {% endif %}

@@ -36,7 +36,7 @@ {{ query.loc }} {% if query.origin %} - + {% endif %} @@ -216,8 +216,8 @@ @@ -265,8 +265,8 @@ {% endfor %} - - + + diff --git a/ietf/templates/meeting/edit_session.html b/ietf/templates/meeting/edit_session.html index 35e8eba1d..1503be512 100644 --- a/ietf/templates/meeting/edit_session.html +++ b/ietf/templates/meeting/edit_session.html @@ -17,7 +17,7 @@ {% bootstrap_form form %} {% buttons %} - Cancel + Cancel {% endbuttons %} {% endblock %} diff --git a/ietf/templates/meeting/edit_timeslot.html b/ietf/templates/meeting/edit_timeslot.html index 1bce120f7..1a84e535a 100644 --- a/ietf/templates/meeting/edit_timeslot.html +++ b/ietf/templates/meeting/edit_timeslot.html @@ -25,7 +25,7 @@ {% bootstrap_form form %} {% buttons %} - Cancel + Cancel {% endbuttons %} {% endblock %} diff --git a/ietf/templates/meeting/materials.html b/ietf/templates/meeting/materials.html index 8ad1770e4..f117819c6 100644 --- a/ietf/templates/meeting/materials.html +++ b/ietf/templates/meeting/materials.html @@ -5,7 +5,7 @@ {% load ietf_filters static managed_groups %} {% block pagehead %} - + {% endblock %} {% block bodyAttrs %}data-bs-spy="scroll" data-bs-target="#affix"{% endblock %} @@ -285,5 +285,5 @@ {% endblock %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/meeting/past.html b/ietf/templates/meeting/past.html index 886d81242..dbebda700 100644 --- a/ietf/templates/meeting/past.html +++ b/ietf/templates/meeting/past.html @@ -5,7 +5,7 @@ {% load ietf_filters static %} {% block pagehead %} - + {% endblock %} {% block bodyAttrs %}data-bs-spy="scroll" data-bs-target="#affix"{% endblock %} @@ -70,5 +70,5 @@ {% endblock %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/meeting/proceedings.html b/ietf/templates/meeting/proceedings.html index 620981390..d8d93e44b 100644 --- a/ietf/templates/meeting/proceedings.html +++ b/ietf/templates/meeting/proceedings.html @@ -44,7 +44,7 @@ {% endblock %} {% block pagehead %} - + {% endblock %} {% block bodyAttrs %}data-bs-spy="scroll" data-bs-target="#affix"{% endblock %} @@ -252,5 +252,5 @@ {% endblock %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/meeting/requests.html b/ietf/templates/meeting/requests.html index efb8db60d..63306810c 100644 --- a/ietf/templates/meeting/requests.html +++ b/ietf/templates/meeting/requests.html @@ -5,7 +5,7 @@ {% load ietf_filters static %} {% block pagehead %} - + {% endblock %} {% block bodyAttrs %}data-bs-spy="scroll" data-bs-target="#affix"{% endblock %} @@ -141,5 +141,5 @@ {% endblock %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/meeting/timeslot_edit.html b/ietf/templates/meeting/timeslot_edit.html index ec61578e2..c5c9dcfe4 100644 --- a/ietf/templates/meeting/timeslot_edit.html +++ b/ietf/templates/meeting/timeslot_edit.html @@ -176,7 +176,7 @@ diff --git a/ietf/templates/meeting/upcoming.html b/ietf/templates/meeting/upcoming.html index 937a23b05..150dcc3f1 100644 --- a/ietf/templates/meeting/upcoming.html +++ b/ietf/templates/meeting/upcoming.html @@ -5,7 +5,7 @@ {% load ietf_filters static classname %} {% block pagehead %} - + @@ -175,7 +175,7 @@ {% endblock %} {% block js %} - + diff --git a/ietf/templates/nomcom/announcements.html b/ietf/templates/nomcom/announcements.html index 6f63439cb..cc498ee10 100644 --- a/ietf/templates/nomcom/announcements.html +++ b/ietf/templates/nomcom/announcements.html @@ -4,7 +4,7 @@ {% load ietf_filters static %} {% block pagehead %} - + {% endblock %} {% block bodyAttrs %}data-bs-spy="scroll" data-bs-target="#affix"{% endblock %} @@ -82,5 +82,5 @@ {% endblock %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/nomcom/eligible.html b/ietf/templates/nomcom/eligible.html index fb5e0c6c5..59e284888 100644 --- a/ietf/templates/nomcom/eligible.html +++ b/ietf/templates/nomcom/eligible.html @@ -7,7 +7,7 @@ {% block subtitle %} - Eligible People{% endblock %} {% block pagehead %} - + {% endblock %} {% block nomcom_content %} @@ -32,5 +32,5 @@ {% endblock nomcom_content %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/nomcom/feedback.html b/ietf/templates/nomcom/feedback.html index 6597671f9..7c2f785dd 100644 --- a/ietf/templates/nomcom/feedback.html +++ b/ietf/templates/nomcom/feedback.html @@ -50,7 +50,7 @@

{{ p.name }}

{% for np in p.nomineeposition_set.accepted.not_duplicated %} - + {{ np.nominee.name }} {% with count=counts|lookup:np.position.id|lookup:np.nominee.id %} Topics
{% for t in topics %} - + {{t.subject}} {% with count=topic_counts|lookup:t.id %} + {% endblock %} {% block bodyAttrs %}data-bs-spy="scroll" data-bs-target="#affix"{% endblock %} @@ -807,5 +807,5 @@ {% endblock %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/nomcom/index.html b/ietf/templates/nomcom/index.html index 8a423897b..8f9aa2543 100644 --- a/ietf/templates/nomcom/index.html +++ b/ietf/templates/nomcom/index.html @@ -4,7 +4,7 @@ {% load ietf_filters static %} {% block pagehead %} - + {% endblock %} {% block title %}NomComs{% endblock %} @@ -48,5 +48,5 @@ {% endblock %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/nomcom/private_index.html b/ietf/templates/nomcom/private_index.html index 714674ff2..25902d4ac 100644 --- a/ietf/templates/nomcom/private_index.html +++ b/ietf/templates/nomcom/private_index.html @@ -5,7 +5,7 @@ {% block subtitle %} - Administration {% endblock %} {% block pagehead %} - + {% endblock %} {% block nomcom_content %} @@ -132,7 +132,7 @@ {% if is_chair and nomcom.group.state_id == 'active' %} - Edit + Edit {% endif %} @@ -172,5 +172,5 @@ {% endblock %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/nomcom/view_feedback.html b/ietf/templates/nomcom/view_feedback.html index 1c1613b28..6887cc3b4 100644 --- a/ietf/templates/nomcom/view_feedback.html +++ b/ietf/templates/nomcom/view_feedback.html @@ -9,7 +9,7 @@ {% block bodyAttrs %}data-bs-spy="scroll" data-bs-target="#affix"{% endblock %} {% block pagehead %} - + {% endblock %} {% block nomcom_content %} @@ -139,5 +139,5 @@ {% endblock %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/nomcom/view_feedback_pending.html b/ietf/templates/nomcom/view_feedback_pending.html index 38c733351..7aebf6135 100644 --- a/ietf/templates/nomcom/view_feedback_pending.html +++ b/ietf/templates/nomcom/view_feedback_pending.html @@ -116,7 +116,7 @@ {{ form.instance.subject }} - + diff --git a/ietf/templates/nomcom/volunteers.html b/ietf/templates/nomcom/volunteers.html index 5b0d712d0..cf56564b7 100644 --- a/ietf/templates/nomcom/volunteers.html +++ b/ietf/templates/nomcom/volunteers.html @@ -7,7 +7,7 @@ {% block subtitle %} - Volunteers{% endblock %} {% block pagehead %} - + {% endblock %} {% block nomcom_content %} @@ -47,5 +47,5 @@ {% endblock nomcom_content %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/person/person_link.html b/ietf/templates/person/person_link.html index 272146b1a..442c5558c 100644 --- a/ietf/templates/person/person_link.html +++ b/ietf/templates/person/person_link.html @@ -1,15 +1,17 @@ {# Copyright The IETF Trust 2020, All Rights Reserved #}{% spaceless %} - {% if email %} - + + {% if email %} + + {{ plain_name }} +   + + + {% elif name %} + + {{ plain_name }} + + {% else %} {{ plain_name }} -   - - - {% elif name %} - - {{ plain_name }} - - {% else %} - {{ plain_name }} - {% endif %} -{% endspaceless %} + {% endif %} + +{% endspaceless %} \ No newline at end of file diff --git a/ietf/templates/stats/document_stats.html b/ietf/templates/stats/document_stats.html index da208ad23..c728805cb 100644 --- a/ietf/templates/stats/document_stats.html +++ b/ietf/templates/stats/document_stats.html @@ -8,7 +8,7 @@ {% block pagehead %} - + {% endblock %} {% block content %} @@ -101,5 +101,5 @@ - + {% endblock %} diff --git a/ietf/templates/stats/meeting_stats.html b/ietf/templates/stats/meeting_stats.html index d384f6c68..21c334b82 100644 --- a/ietf/templates/stats/meeting_stats.html +++ b/ietf/templates/stats/meeting_stats.html @@ -8,7 +8,7 @@ {% block pagehead %} - + {% endblock %} {% block content %} @@ -45,5 +45,5 @@ - + {% endblock %} diff --git a/ietf/templates/stats/review_stats.html b/ietf/templates/stats/review_stats.html index d1ae08c86..162dd7329 100644 --- a/ietf/templates/stats/review_stats.html +++ b/ietf/templates/stats/review_stats.html @@ -5,7 +5,7 @@ {% load ietf_filters static django_bootstrap5 %} {% block pagehead %} - + {% endblock %} @@ -252,7 +252,7 @@ {% endblock %} {% block js %} - + {% if stats_type == "time" %} diff --git a/ietf/templates/submit/approvals.html b/ietf/templates/submit/approvals.html index 1e342d631..868a9176b 100644 --- a/ietf/templates/submit/approvals.html +++ b/ietf/templates/submit/approvals.html @@ -3,7 +3,7 @@ {% load origin static %} {% block pagehead %} - + {% endblock %} {% block title %}Draft submission approvals{% endblock %} @@ -60,7 +60,7 @@ {{ p.name }} {{ p.time|date:"Y-m-d" }} {{ p.by }} - Cancel + Cancel {% endfor %} @@ -103,5 +103,5 @@ {% endblock %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/submit/edit_submission.html b/ietf/templates/submit/edit_submission.html index 0779d447c..78332e7d1 100644 --- a/ietf/templates/submit/edit_submission.html +++ b/ietf/templates/submit/edit_submission.html @@ -40,7 +40,7 @@ Document {{ submission.name }} - + {% show_submission_files submission %} diff --git a/ietf/templates/submit/manual_post.html b/ietf/templates/submit/manual_post.html index f5a3d6a5f..02bc65c53 100644 --- a/ietf/templates/submit/manual_post.html +++ b/ietf/templates/submit/manual_post.html @@ -3,7 +3,7 @@ {% load origin static %} {% block pagehead %} - + {% endblock %} {% block title %}Draft submissions awaiting manual posting{% endblock %} @@ -74,12 +74,12 @@ {% csrf_token %} - + {% endif %} {% if user|has_role:"Secretariat" %} - Add email + Add email {% endif %} {% endfor %} @@ -94,5 +94,5 @@ {% endblock %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/submit/submission_email.html b/ietf/templates/submit/submission_email.html index 522a770ce..fb8c707b1 100644 --- a/ietf/templates/submit/submission_email.html +++ b/ietf/templates/submit/submission_email.html @@ -3,7 +3,7 @@ {% load origin static %} {% block pagehead %} - + {% endblock %} {% block title %}Submission email{% endblock %} @@ -56,5 +56,5 @@ {% endblock %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/submit/submission_files.html b/ietf/templates/submit/submission_files.html index 17417f825..d92c94b5a 100644 --- a/ietf/templates/submit/submission_files.html +++ b/ietf/templates/submit/submission_files.html @@ -1,7 +1,7 @@ {# Copyright The IETF Trust 2015, All Rights Reserved #}{% load origin %}{% origin %} {% for file in files %} {% if file.exists %} - + {{ file.ext }} diff --git a/ietf/templates/submit/submission_status.html b/ietf/templates/submit/submission_status.html index f3e9287c0..22608bdec 100644 --- a/ietf/templates/submit/submission_status.html +++ b/ietf/templates/submit/submission_status.html @@ -146,7 +146,7 @@ {{ submission.name }} {% endif %} - + {% show_submission_files submission %} @@ -162,7 +162,7 @@ {{ submission.rev }} {% if errors.rev %} - +

{{ errors.rev }}

{% endif %} @@ -426,7 +426,7 @@ {% if user.is_authenticated %} {% if e.desc|startswith:"Received message" and user|has_role:"Secretariat" %} - Reply + Reply {% endif %} Email: {{ e.desc }} {% else %} diff --git a/ietf/templates/sync/discrepancies.html b/ietf/templates/sync/discrepancies.html index bd16f93ef..b70d41691 100644 --- a/ietf/templates/sync/discrepancies.html +++ b/ietf/templates/sync/discrepancies.html @@ -3,7 +3,7 @@ {% load origin static %} {% block pagehead %} - + {% endblock %} {% block title %}Sync discrepancies{% endblock %} @@ -44,5 +44,5 @@ {% endblock %} {% block js %} - + {% endblock %} diff --git a/ietf/templates/sync/rfceditor_undo.html b/ietf/templates/sync/rfceditor_undo.html index a52e18e22..25eef5f62 100644 --- a/ietf/templates/sync/rfceditor_undo.html +++ b/ietf/templates/sync/rfceditor_undo.html @@ -28,7 +28,7 @@
{% csrf_token %} - +