We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Show domain name of the email address that was used to verify the account
Google Scholar shows on profiles instead of the entire email address only the domain name. Something like "Verified email address at radboudumc.nl". Would be a good feature for grand challenge as well, this would make it possible to check if users used an email address from their institution to verify their account. A similar text to what Google Scholar shows could be displayed when hovering over the check mark icon, for example.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `app/grandchallenge/profiles/templatetags/profiles.py`
Content:
```
1 from typing import Union
2 
3 from django import template
4 from django.contrib.auth import get_user_model
5 from django.contrib.auth.models import AbstractUser
6 from django.core.exceptions import ObjectDoesNotExist
7 from django.utils.html import format_html
8 from django.utils.safestring import mark_safe
9 
10 from grandchallenge.subdomains.utils import reverse
11 
12 register = template.Library()
13 
14 
15 @register.filter
16 def user_profile_link(user: Union[AbstractUser, None]) -> str:
17     verified = ""
18 
19     if user:
20         username = user.username
21         profile_url = reverse(
22             "userena_profile_detail", kwargs={"username": user.username}
23         )
24         mugshot = format_html(
25             (
26                 '<img class="mugshot" loading="lazy" src="{0}" '
27                 'alt="User Mugshot" '
28                 # Match the "fa-lg" class style
29                 'style="height: 1.33em; vertical-align: -25%;"/>'
30             ),
31             user.user_profile.get_mugshot_url(),
32         )
33 
34         try:
35             if user.verification.is_verified:
36                 verified = mark_safe(
37                     '<i class="fas fa-user-check text-success" '
38                     'title="Verified User"></i>'
39                 )
40         except ObjectDoesNotExist:
41             # No verification request
42             pass
43     else:
44         username = "Unknown"
45         profile_url = "#"
46         mugshot = mark_safe('<i class="fas fa-user fa-lg"></i>')
47 
48     return format_html(
49         '<span class="text-nowrap"><a href="{0}">{1}</a>&nbsp;<a href="{0}">{2}</a>&nbsp;{3}</span>',
50         profile_url,
51         mugshot,
52         username,
53         verified,
54     )
55 
56 
57 @register.filter
58 def user_profile_link_username(username: str) -> str:
59     User = get_user_model()  # noqa: N806
60     return user_profile_link(User.objects.get(username=username))
61
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/app/grandchallenge/profiles/templatetags/profiles.py b/app/grandchallenge/profiles/templatetags/profiles.py
--- a/app/grandchallenge/profiles/templatetags/profiles.py
+++ b/app/grandchallenge/profiles/templatetags/profiles.py
@@ -33,9 +33,15 @@
 
         try:
             if user.verification.is_verified:
-                verified = mark_safe(
+                email = (
+                    user.verification.email
+                    if user.verification.email
+                    else user.email
+                )
+                verified = format_html(
                     '<i class="fas fa-user-check text-success" '
-                    'title="Verified User"></i>'
+                    'title="Verified email address at {}"></i>',
+                    email.split("@")[1],
                 )
         except ObjectDoesNotExist:
             # No verification request

{"golden_diff": "diff --git a/app/grandchallenge/profiles/templatetags/profiles.py b/app/grandchallenge/profiles/templatetags/profiles.py\n--- a/app/grandchallenge/profiles/templatetags/profiles.py\n+++ b/app/grandchallenge/profiles/templatetags/profiles.py\n@@ -33,9 +33,15 @@\n \n         try:\n             if user.verification.is_verified:\n-                verified = mark_safe(\n+                email = (\n+                    user.verification.email\n+                    if user.verification.email\n+                    else user.email\n+                )\n+                verified = format_html(\n                     '<i class=\"fas fa-user-check text-success\" '\n-                    'title=\"Verified User\"></i>'\n+                    'title=\"Verified email address at {}\"></i>',\n+                    email.split(\"@\")[1],\n                 )\n         except ObjectDoesNotExist:\n             # No verification request\n", "issue": "Show domain name of the email address that was used to verify the account\nGoogle Scholar shows on profiles instead of the entire email address only the domain name. Something like \"Verified email address at radboudumc.nl\". Would be a good feature for grand challenge as well, this would make it possible to check if users used an email address from their institution to verify their account. A similar text to what Google Scholar shows could be displayed when hovering over the check mark icon, for example.\n", "before_files": [{"content": "from typing import Union\n\nfrom django import template\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.models import AbstractUser\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.utils.html import format_html\nfrom django.utils.safestring import mark_safe\n\nfrom grandchallenge.subdomains.utils import reverse\n\nregister = template.Library()\n\n\n@register.filter\ndef user_profile_link(user: Union[AbstractUser, None]) -> str:\n    verified = \"\"\n\n    if user:\n        username = user.username\n        profile_url = reverse(\n            \"userena_profile_detail\", kwargs={\"username\": user.username}\n        )\n        mugshot = format_html(\n            (\n                '<img class=\"mugshot\" loading=\"lazy\" src=\"{0}\" '\n                'alt=\"User Mugshot\" '\n                # Match the \"fa-lg\" class style\n                'style=\"height: 1.33em; vertical-align: -25%;\"/>'\n            ),\n            user.user_profile.get_mugshot_url(),\n        )\n\n        try:\n            if user.verification.is_verified:\n                verified = mark_safe(\n                    '<i class=\"fas fa-user-check text-success\" '\n                    'title=\"Verified User\"></i>'\n                )\n        except ObjectDoesNotExist:\n            # No verification request\n            pass\n    else:\n        username = \"Unknown\"\n        profile_url = \"#\"\n        mugshot = mark_safe('<i class=\"fas fa-user fa-lg\"></i>')\n\n    return format_html(\n        '<span class=\"text-nowrap\"><a href=\"{0}\">{1}</a>&nbsp;<a href=\"{0}\">{2}</a>&nbsp;{3}</span>',\n        profile_url,\n        mugshot,\n        username,\n        verified,\n    )\n\n\n@register.filter\ndef user_profile_link_username(username: str) -> str:\n    User = get_user_model()  # noqa: N806\n    return user_profile_link(User.objects.get(username=username))\n", "path": "app/grandchallenge/profiles/templatetags/profiles.py"}], "after_files": [{"content": "from typing import Union\n\nfrom django import template\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.models import AbstractUser\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.utils.html import format_html\nfrom django.utils.safestring import mark_safe\n\nfrom grandchallenge.subdomains.utils import reverse\n\nregister = template.Library()\n\n\n@register.filter\ndef user_profile_link(user: Union[AbstractUser, None]) -> str:\n    verified = \"\"\n\n    if user:\n        username = user.username\n        profile_url = reverse(\n            \"userena_profile_detail\", kwargs={\"username\": user.username}\n        )\n        mugshot = format_html(\n            (\n                '<img class=\"mugshot\" loading=\"lazy\" src=\"{0}\" '\n                'alt=\"User Mugshot\" '\n                # Match the \"fa-lg\" class style\n                'style=\"height: 1.33em; vertical-align: -25%;\"/>'\n            ),\n            user.user_profile.get_mugshot_url(),\n        )\n\n        try:\n            if user.verification.is_verified:\n                email = (\n                    user.verification.email\n                    if user.verification.email\n                    else user.email\n                )\n                verified = format_html(\n                    '<i class=\"fas fa-user-check text-success\" '\n                    'title=\"Verified email address at {}\"></i>',\n                    email.split(\"@\")[1],\n                )\n        except ObjectDoesNotExist:\n            # No verification request\n            pass\n    else:\n        username = \"Unknown\"\n        profile_url = \"#\"\n        mugshot = mark_safe('<i class=\"fas fa-user fa-lg\"></i>')\n\n    return format_html(\n        '<span class=\"text-nowrap\"><a href=\"{0}\">{1}</a>&nbsp;<a href=\"{0}\">{2}</a>&nbsp;{3}</span>',\n        profile_url,\n        mugshot,\n        username,\n        verified,\n    )\n\n\n@register.filter\ndef user_profile_link_username(username: str) -> str:\n    User = get_user_model()  # noqa: N806\n    return user_profile_link(User.objects.get(username=username))\n", "path": "app/grandchallenge/profiles/templatetags/profiles.py"}]}