From b1eedee9d4ab04edee63100f74bc8f2962504566 Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Wed, 27 Dec 2023 12:28:45 -0600 Subject: [PATCH 1/5] Display information about consumed/provided services --- ejs-views/pages/package_detail.ejs | 1 + ejs-views/pages/package_list.ejs | 1 + ejs-views/pages/search.ejs | 1 + ejs-views/partials/footer.ejs | 2 +- ejs-views/partials/pagination.ejs | 12 +-- ejs-views/partials/search_bar.ejs | 2 +- ejs-views/partials/search_description.ejs | 12 +++ ejs-views/partials/service_listing.ejs | 68 ++++++++++++++ src/handlers.js | 104 +++++++++++++++------- src/utils.js | 3 + 10 files changed, 166 insertions(+), 40 deletions(-) create mode 100644 ejs-views/partials/search_description.ejs create mode 100644 ejs-views/partials/service_listing.ejs diff --git a/ejs-views/pages/package_detail.ejs b/ejs-views/pages/package_detail.ejs index d4253a4..00bddec 100644 --- a/ejs-views/pages/package_detail.ejs +++ b/ejs-views/pages/package_detail.ejs @@ -2,6 +2,7 @@
<%- include('../partials/package_listing', {verbose: true}); %> + <%- include('../partials/service_listing', {pack}); %>
<%-pack.readme%>
diff --git a/ejs-views/pages/package_list.ejs b/ejs-views/pages/package_list.ejs index 7d870f9..d7118f3 100644 --- a/ejs-views/pages/package_list.ejs +++ b/ejs-views/pages/package_list.ejs @@ -2,6 +2,7 @@
<%- include('../partials/search_bar'); %> + <%- include('../partials/search_description'); %> <%- include('../partials/pagination'); %> <%- include('../partials/package_grid', { packages }); %> <%- include('../partials/pagination'); %> diff --git a/ejs-views/pages/search.ejs b/ejs-views/pages/search.ejs index 94d1a31..a6d6ba2 100644 --- a/ejs-views/pages/search.ejs +++ b/ejs-views/pages/search.ejs @@ -2,6 +2,7 @@
<%- include('../partials/search_bar'); %> + <%- include('../partials/search_description'); %> <%- include('../partials/pagination'); %> <%- include('../partials/package_grid', { packages }); %> <% if (pagination && pagination.total > 0) { %> diff --git a/ejs-views/partials/footer.ejs b/ejs-views/partials/footer.ejs index 019c900..90d1092 100644 --- a/ejs-views/partials/footer.ejs +++ b/ejs-views/partials/footer.ejs @@ -28,7 +28,7 @@ Contact Us -

Pulsar-Edit © <%- new Date().getFullYear() %>

+

Pulsar-Edit © <%= new Date().getFullYear() %>

<% if (dev) { %> diff --git a/ejs-views/partials/pagination.ejs b/ejs-views/partials/pagination.ejs index 50bc83c..baf46c5 100644 --- a/ejs-views/partials/pagination.ejs +++ b/ejs-views/partials/pagination.ejs @@ -1,25 +1,25 @@ <% if (pagination && pagination.total > 0) { %>