diff --git a/app/static/roles.js b/app/static/roles.js
index 8c597a5..d1a0b50 100644
--- a/app/static/roles.js
+++ b/app/static/roles.js
@@ -85,7 +85,7 @@
"use strict";
const { api, esc, debounce, safeUrl, companies, loadCompanies, affinityControl, overridesControl,
- judgeButtons, loadTracked, chipInput } = window;
+ judgeButtons, loadTracked, chipInput, remoteHelpers } = window;
const $ = (sel, root = document) => root.querySelector(sel);
// Below this the rail is over the feed rather than beside it, and the reader
@@ -128,8 +128,9 @@
};
// The place suggestion's kind, as its hint says it: a `place:` token is a
- // town (`places.suggest`).
- const PLACE_KINDS = { country: "country", region: "region", place: "town" };
+ // town, a `remote:` token the remote roles a person there can take, its
+ // count the roles it would find (`places.suggest`).
+ const PLACE_KINDS = { country: "country", region: "region", place: "town", remote: "remote" };
// Everything `clearFilters` has to put back, in one place, so a new filter
// added here cannot be forgotten there. `company` and `place` are the
@@ -889,7 +890,7 @@
/** Closed, pay, remote, function and seniority, as the row and the reader
both show them. */
function badges(role) {
- const words = [role.remote, role.function, role.seniority].filter(Boolean);
+ const words = [remoteHelpers.remoteBadge(role), role.function, role.seniority].filter(Boolean);
const pay = payBadge(role);
return (role.closed_at ? `closed` : "")
+ (pay ? `${esc(pay)}` : "")
diff --git a/app/templates/roles.html b/app/templates/roles.html
index 1e191d0..39ff2ae 100644
--- a/app/templates/roles.html
+++ b/app/templates/roles.html
@@ -166,6 +166,7 @@
applies all the same, and chips.css only adds to app.css. #}
+
{% endblock %}