diff --git a/app/port/templates/port/includes/port-header.html b/app/port/templates/port/includes/port-header.html
index 1e70f03ba..ea184509c 100644
--- a/app/port/templates/port/includes/port-header.html
+++ b/app/port/templates/port/includes/port-header.html
@@ -27,7 +27,7 @@
- The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
+ The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets,
you must have a GitHub account in order to login to Trac to create tickets.
Report an Issue on MacPorts Trac
@@ -133,7 +133,7 @@
Installable ports:
{% else %}
Add to my watchlist
{% endif %}
-
{{ port.subscribers.count }}
+
{{ port.subscribers.count|intcomma }}
@@ -141,11 +141,11 @@
Installable ports:
Installations
- {{ count.all }}
+ {{ count.all|intcomma }}
Requested Installations
- {{ count.requested }}
+ {{ count.requested|intcomma }}
diff --git a/app/port/templates/port/port_details.html b/app/port/templates/port/port_details.html
index e82e0e9c7..2de7a580d 100644
--- a/app/port/templates/port/port_details.html
+++ b/app/port/templates/port/port_details.html
@@ -84,7 +84,7 @@
{% for subport in subports %}
@@ -98,7 +98,7 @@
Subport(s) ({{ subports.count }})
"{{ port.name }}" depends on
{% if port.dependent_port.all.count > 0 %}
{% for d in port.dependent_port.all %}
-
{{ d.type }} ({{ d.dependencies.all.count }})
+
{{ d.type }} ({{ d.dependencies.all.count|intcomma }})
{% for i in d.dependencies.all|dictsort:"name.lower" %}
@@ -115,7 +115,7 @@
Ports that depend on "{{ port.name }}"
{% if dependents|length > 0 %}
{% for d in dependents %}
- {{ d.type }} ({{ d.ports|length }})
+ {{ d.type }} ({{ d.ports|length|intcomma }})
{% for i in d.ports|dictsort:"0.lower" %}
@@ -145,13 +145,13 @@
Port Health:
Installations (30 days)
- {{count.all}}
+ {{count.all|intcomma}}
Requested Installations (30 days)
- {{ count.requested }}
+ {{ count.requested|intcomma }}
{% if port.livecheck.result %}
diff --git a/app/port/templates/port/port_health.html b/app/port/templates/port/port_health.html
index 0d7adac53..98391be38 100644
--- a/app/port/templates/port/port_health.html
+++ b/app/port/templates/port/port_health.html
@@ -1,4 +1,5 @@
{% load url_generate %}
+{% load humanize %}
{% for builder in builders %}
@@ -14,7 +15,7 @@
{{ builder.natural_name }}
{% if latest_build.files.count > 0 %}
- Files ({{ latest_build.files.count }})
+ Files ({{ latest_build.files.count|intcomma }})
{% endif %}
{% if latest_build.files.count > 0 %}
@@ -65,4 +66,4 @@ Files ({{ builder.display_name }})
}
$("#" + id + "-modal-body").html(ul);
});
-
\ No newline at end of file
+
diff --git a/app/port/templates/port/port_stats.html b/app/port/templates/port/port_stats.html
index d95011177..ae8ba48e8 100644
--- a/app/port/templates/port/port_stats.html
+++ b/app/port/templates/port/port_stats.html
@@ -1,6 +1,7 @@
{% extends 'layout.html' %}
{% load static %}
{% load url_replace %}
+{% load humanize %}
{% block title %}Statistics - {{ port.name }} |{% endblock %}
@@ -15,7 +16,7 @@
{% include 'port/includes/port-tabs.html' with port_name=port.name active="stats" %}
diff --git a/app/static/css/main.css b/app/static/css/main.css
index 61cfd1391..a5626033b 100644
--- a/app/static/css/main.css
+++ b/app/static/css/main.css
@@ -48,6 +48,10 @@ body{
min-height: 300px !important;
}
+.table, .chart {
+ font-variant-numeric: tabular-nums;
+}
+
.tab-content > .tab-pane:not(.active),
.pill-content > .pill-pane:not(.active) {
display: block;
diff --git a/app/stats/templates/stats/port_installations_table.html b/app/stats/templates/stats/port_installations_table.html
index a11de75e2..85ea65fdf 100644
--- a/app/stats/templates/stats/port_installations_table.html
+++ b/app/stats/templates/stats/port_installations_table.html
@@ -1,7 +1,9 @@
+{% load humanize %}
+
{% if installs.has_other_pages %}
- Page {{ installs.number }} of {{ installs.paginator.num_pages }} | Showing ports {{ installs.start_index }} to
- {{ installs.end_index }}
+ Page {{ installs.number|intcomma }} of {{ installs.paginator.num_pages|intcomma }} | Showing ports {{ installs.start_index|intcomma }} to
+ {{ installs.end_index|intcomma }}
- {{ port.total_count }}
+ {{ port.total_count|intcomma }}
- {{ port.req_count }}
+ {{ port.req_count|intcomma }}
{% endfor %}
diff --git a/app/stats/templates/stats/stats.html b/app/stats/templates/stats/stats.html
index 179c3bd35..b51f25bfd 100644
--- a/app/stats/templates/stats/stats.html
+++ b/app/stats/templates/stats/stats.html
@@ -1,5 +1,6 @@
{% extends 'layout.html' %}
{% load static %}
+{% load humanize %}
{% block head_scripts %}
@@ -29,19 +30,19 @@
Total submissions:
- {{ total_submissions }}
+ {{ total_submissions|intcomma }}
Total unique users:
- {{ unique_users }}
+ {{ unique_users|intcomma }}
Unique users last week:
- {{ last_week }}
+ {{ last_week|intcomma }}
Unique users this week:
- {{ current_week }}
+ {{ current_week|intcomma }}
@@ -52,7 +53,7 @@
{% csrf_token %}
-
{{ ports_count }}
+ {{ ports_count|intcomma }}
View all
diff --git a/app/templates/search/search.html b/app/templates/search/search.html
index 6241f175a..f0914d294 100644
--- a/app/templates/search/search.html
+++ b/app/templates/search/search.html
@@ -2,6 +2,7 @@
{% load static %}
{% load highlight %}
{% load url_replace %}
+{% load humanize %}
{% block head_scripts %}
@@ -35,7 +36,7 @@
{% for maintainer in facets.fields.maintainers|slice:":5" %}
{{ maintainer.0 }}({{ maintainer.1 }})
+ onclick="appendMaintainerFilter('{{ maintainer.0 }}');$('#super-submit').click();">{{ maintainer.0 }}({{ maintainer.1|intcomma }})
{% endfor %}
@@ -63,7 +64,7 @@
{% for category in facets.fields.categories|slice:":5" %}