-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathitemCards.ejs
More file actions
43 lines (43 loc) · 1.43 KB
/
itemCards.ejs
File metadata and controls
43 lines (43 loc) · 1.43 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<div class="breadcrumbs">
<span> <a href="/search?floor=<%- floor %>"> <%- floor %> </a></span> >
<span> <a href="/search?floor=<%- floor %>&room=<%- room %>"> <%- room %> </a></span> >
<span> <a href="/search?floor=<%- floor %>&room=<%- room %>&location=<%- location %>"> <%- location %> </a></span> >
<span> <a href="/search?fixture=<%- fixture %>"> <%- fixture %> </a></span>
</div>
<% if (uuid) { %>
<div class="card titleCard">
<% } else { %>
<div class="card titleCard faded">
<% } %>
<div class="image">
<% if (picture === undefined || picture === '') { %>
<% if (uuid) { %>
<a href="/<%- uuid %>"> <img class="itemImg" src="noImg.png" /> </a>
<% } else { %>
<img class="itemImg" src="noImg.png" />
<% } %>
<% }else{ %>
<% if (uuid) { %>
<a href="/<%- uuid %>"><img class="itemImg" src=" <%- picture %> " /> </a>
<% } else { %>
<img class="itemImg" src=" <%- picture %> " />
<% } %>
<% } %>
</div>
<div class="itemTitle">
<% if (uuid) { %>
<div class="center">
<a href="/<%- uuid %>"> <%- fixture %> </a>
<% } else { %>
<div class="center">
<%- fixture %>
<% } %>
<div class="subTitle"> <%- model %> </div>
</div>
</div>
<div class="image right">
<% if (status === 'broken') { %>
<img class="status" title="Status: <%- status %>" alt="<%- status %>" src="wrench.png" />
<% } %>
</div>
</div>