diff --git a/CTFd/themes/admin/templates/modals/teams/addresses.html b/CTFd/themes/admin/templates/modals/teams/addresses.html
index b3e4760d..aacd8a2d 100644
--- a/CTFd/themes/admin/templates/modals/teams/addresses.html
+++ b/CTFd/themes/admin/templates/modals/teams/addresses.html
@@ -6,6 +6,7 @@
User |
IP Address |
Last Seen |
+ Country |
@@ -20,6 +21,17 @@
|
+ {% set country = lookup_ip_address(addr.ip) %}
+ {% if country %}
+
+
+
+ {{ lookup_country_code(country) }}
+ |
+ {% else %}
+
+ |
+ {% endif %}
{% endfor %}
diff --git a/CTFd/themes/admin/templates/modals/users/addresses.html b/CTFd/themes/admin/templates/modals/users/addresses.html
index 218a64ee..75af0a26 100644
--- a/CTFd/themes/admin/templates/modals/users/addresses.html
+++ b/CTFd/themes/admin/templates/modals/users/addresses.html
@@ -5,6 +5,7 @@
| IP Address |
Last Seen |
+ Country |
@@ -14,6 +15,17 @@
|
+ {% set country = lookup_ip_address(addr.ip) %}
+ {% if country %}
+
+
+
+ {{ lookup_country_code(country) }}
+ |
+ {% else %}
+
+ |
+ {% endif %}
{% endfor %}
diff --git a/CTFd/themes/admin/templates/teams/team.html b/CTFd/themes/admin/templates/teams/team.html
index 62cef227..dcb627ec 100644
--- a/CTFd/themes/admin/templates/teams/team.html
+++ b/CTFd/themes/admin/templates/teams/team.html
@@ -71,7 +71,7 @@