% function kebabToTitleCase(str) { return str .split('-') // Split the string into words using the hyphen as the delimiter .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()) // Capitalize the first letter of each word .join(' '); // Join the words back together with spaces } %>
No pools to display.
<% } %><% if (ctx.parameters.query == 'sort:name' || !ctx.parameters.query) { %> '>Pool name(s) <% } else { %> '>Pool name(s) <% } %> | <% if (ctx.parameters.query == 'sort:post-count') { %> '>Post count <% } else { %> '>Post count <% } %> | <% if (ctx.parameters.query == 'sort:creation-time') { %> '>Created on <% } else { %> '>Created on <% } %> | <% for (let pool of ctx.response.results) { %>
---|---|---|
|
'><%- pool.postCount %> | <%= ctx.makeRelativeTime(pool.creationTime) %> |