Repository: ietf-tools/datatracker

Issue:
`IDTRACKER_BASE_URL` missing from IPR email
### Describe the issue

```
A generic IPR disclosure was submitted to the IETF Secretariat on 2022-08-04
and has been posted on the "IETF Page of Intellectual Property Rights Disclosures"
(/ipr/).  The title of the IPR disclosure is
```
`/ipr/` needs to be prefixed with `IDTRACKER_BASE_URL`. Ideally, we would link to the posting itself though, not just the list of disclosures.

Same appears with specific declarations:
```
An IPR disclosure that pertains to your Internet-Draft entitled "OSPFv3
Extensions for SRv6" (draft-ietf-lsr-ospfv3-srv6-extensions) was submitted to
the IETF Secretariat on 2022-08-10 and has been posted on the "IETF Page of
Intellectual Property Rights Disclosures" (/ipr/5785/history/). The title of
the IPR disclosure is "Huawei Technologies Co.,Ltd's Statement about IPR
related to draft-ietf-lsr-ospfv3-srv6-extensions"
```

### Code of Conduct

- [X] I agree to follow the [IETF's Code of Conduct](https://github.com/ietf-tools/.github/blob/main/CODE_OF_CONDUCT.md)


Discussion:

Resolving patch:
diff --git a/ietf/ipr/views.py b/ietf/ipr/views.py
--- a/ietf/ipr/views.py
+++ b/ietf/ipr/views.py
@@ -80,6 +80,7 @@ def get_document_emails(ipr):
         author_names = ', '.join(a.person.name for a in doc.documentauthor_set.select_related("person"))
     
         context = dict(
+            settings=settings,
             doc_info=doc_info,
             to_email=addrs.to,
             to_name=author_names,
@@ -97,6 +98,7 @@ def get_posted_emails(ipr):
 
     addrs = gather_address_lists('ipr_posting_confirmation',ipr=ipr).as_strings(compact=False)
     context = dict(
+        settings=settings,
         to_email=addrs.to,
         to_name=ipr.submitter_name,
         cc_email=addrs.cc,
@@ -112,6 +114,7 @@ def get_posted_emails(ipr):
     if isinstance(ipr, (GenericIprDisclosure,NonDocSpecificIprDisclosure)):
         role = Role.objects.filter(group__acronym='gen',name='ad').first()
         context = dict(
+            settings=settings,
             to_email=role.email.address,
             to_name=role.person.name,
             ipr=ipr)


Test patch:
diff --git a/ietf/ipr/tests.py b/ietf/ipr/tests.py
--- a/ietf/ipr/tests.py
+++ b/ietf/ipr/tests.py
@@ -9,6 +9,7 @@
 from urllib.parse import quote, urlparse
 
 from django.urls import reverse as urlreverse
+from django.conf import settings
 
 import debug                            # pyflakes:ignore
 
@@ -575,6 +576,8 @@ def test_notify(self):
         self.assertTrue('draft-ietf-mars-test@ietf.org' in outbox[len_before+1]['To'])
         self.assertTrue('mars-wg@ietf.org' in outbox[len_before+1]['Cc'])
         self.assertIn('Secretariat on '+ipr.get_latest_event_submitted().time.strftime("%Y-%m-%d"), get_payload_text(outbox[len_before+1]).replace('\n',' '))
+        self.assertIn(f'{settings.IDTRACKER_BASE_URL}{urlreverse("ietf.ipr.views.showlist")}', get_payload_text(outbox[len_before]).replace('\n',' '))
+        self.assertIn(f'{settings.IDTRACKER_BASE_URL}{urlreverse("ietf.ipr.views.history",kwargs=dict(id=ipr.pk))}', get_payload_text(outbox[len_before+1]).replace('\n',' '))
 
     def test_notify_generic(self):
         RoleFactory(name_id='ad',group__acronym='gen')
@@ -591,6 +594,7 @@ def test_notify_generic(self):
         self.assertEqual(r.status_code,302)
         self.assertEqual(len(outbox),2)
         self.assertIn('Secretariat on '+ipr.get_latest_event_submitted().time.strftime("%Y-%m-%d"), get_payload_text(outbox[1]).replace('\n',' '))
+        self.assertIn(f'{settings.IDTRACKER_BASE_URL}{urlreverse("ietf.ipr.views.showlist")}', get_payload_text(outbox[1]).replace('\n',' '))
 
     def send_ipr_email_helper(self):
         ipr = HolderIprDisclosureFactory()