diff --git a/shynet/dashboard/static/dashboard/css/global.css b/shynet/dashboard/static/dashboard/css/global.css index b2c92e2..2f575dc 100644 --- a/shynet/dashboard/static/dashboard/css/global.css +++ b/shynet/dashboard/static/dashboard/css/global.css @@ -19,6 +19,10 @@ border-radius: 0 0 var(--border-radius-lg,.5rem) var(--border-radius-lg,.5rem); } +.max-w-0 { + max-width: 0; +} + :root { --color-neutral-000: white; --color-neutral-50: #F8FAFC; diff --git a/shynet/dashboard/templates/dashboard/pages/service.html b/shynet/dashboard/templates/dashboard/pages/service.html index 03a9901..28d58c1 100644 --- a/shynet/dashboard/templates/dashboard/pages/service.html +++ b/shynet/dashboard/templates/dashboard/pages/service.html @@ -109,7 +109,7 @@ {% for location in stats.locations %} - {{location.location|default:"Unknown"|urldisplay}} + {{location.location|default:"Unknown"|urldisplay}} {{location.count|intcomma}} {% empty %} @@ -131,7 +131,7 @@ {% for referrer in stats.referrers %} - {{referrer.referrer|default:"Direct"|urldisplay}} + {{referrer.referrer|default:"Direct"|urldisplay}} {{referrer.count|intcomma}} {% empty %} @@ -153,7 +153,9 @@ {% for country in stats.countries %} - {{country.country|country_name}} + + {{country.country|country_name}} + {{country.count|intcomma}} {% empty %} @@ -175,7 +177,9 @@ {% for os in stats.operating_systems %} - {{os.os|iconify}}{{os.os|default:"Unknown"}} + + {{os.os|iconify}}{{os.os|default:"Unknown"}} + {{os.count|intcomma}} {% empty %} @@ -197,7 +201,7 @@ {% for browser in stats.browsers %} - + {{browser.browser|iconify}}{{browser.browser|default:"Unknown"}} {{browser.count|intcomma}} @@ -220,7 +224,7 @@ {% for device_type in stats.device_types %} - {{device_type.device_type|default:"Unknown"|title}} + {{device_type.device_type|default:"Unknown"|title}} {{device_type.count|intcomma}} {% empty %} diff --git a/shynet/dashboard/templatetags/helpers.py b/shynet/dashboard/templatetags/helpers.py index e9978be..701f735 100644 --- a/shynet/dashboard/templatetags/helpers.py +++ b/shynet/dashboard/templatetags/helpers.py @@ -181,7 +181,7 @@ def urldisplay(url): if url.startswith("http"): display_url = url.replace("http://", "").replace("https://", "") return SafeString( - f"{iconify(url)} {escape(display_url if len(display_url) < 40 else display_url[:40] + '...')}" + f"{iconify(url)}{escape(display_url)}" ) else: return url