-
Notifications
You must be signed in to change notification settings - Fork 4
/
category.ejs
27 lines (26 loc) · 1.3 KB
/
category.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<%- include('partials/header'); %>
<div class="page-header-bg" style="background-image:url('<%= category.image %>')">
<h2><%= title %></h2>
</div>
<div class="container">
<% if(services.length > 0) { %>
<div class="row">
<% services.forEach((service) => { %>
<div class="col s12 m6 l3">
<div class="card service-card">
<div class="card-image" style="background-image:url('<%= service.cover_image %>')"></div>
<div class="card-content">
<p><strong><%= service.title %></strong> for <strong><%= service.price %> <%= service.currency %></strong></p>Offered by <a href="/@<%= service.seller.username %>"><%= service.seller.username %></a>
</div>
<div class="card-action">
<a class="waves-effect waves-light btn" href="/@<%= service.seller.username %>/<%= service.slug %>">View</a>
</div>
</div>
</div>
<% })
} else { %>
<p class="flow-text">There is no services added to this category.</p>
<% } %>
</div>
</div>
<%- include('partials/footer'); %>