|
1 | | - <ul class="searchResultList"> |
2 | | - <% for(var i = 0; i < matches.length; i++){ %> |
3 | | - <li> |
4 | | - <div class="col-xs-12"> |
5 | | - <span> <a href="/search?floor=<%- matches[i].floor %>"> <%- matches[i].floor.toLowerCase() %> </a></span> > |
6 | | - <span> <a href="/search?floor=<%- matches[i].floor %>&room=<%- matches[i].room %>"> <%- matches[i].room.toLowerCase() %> </a></span> > |
7 | | - <span> <a href="/search?floor=<%- matches[i].floor %>&room=<%- matches[i].room %>&location=<%- matches[i].location %>"> <%- matches[i].location.toLowerCase() %> </a></span> > |
8 | | - <span> <a href="/search?fixture=<%- matches[i].fixture %>"> <%- matches[i].fixture.toLowerCase() %> </a></span> |
9 | | - </div> |
10 | | - <div class="well col-xs-12"> |
11 | | - <div class="col-xs-2"> |
12 | | - <% if (matches[i].picture === undefined || matches[i].picture === '') { %> |
13 | | - <img class="itemImg" src="noImg.png" /> |
14 | | - <% }else{ %> |
15 | | - <img class="itemImg" src=" <%- matches[i].picture %> " /> |
16 | | - <%}%> |
17 | | - </div> |
18 | | - <div class="itemTitle col-xs-8"> |
19 | | - <h4> <a href="/<%- matches[i].uuid %>"> <%- matches[i].fixture.toUpperCase().bold() %> </a> </h4> |
20 | | - <span> <%- matches[i].model.toLowerCase().italics() %> </span> |
21 | | - </div> |
22 | | - <div class="itemImg col-xs-2"> |
23 | | - <% if (matches[i].status === 'broken') { %> |
24 | | - <span class="glyphicon glyphicon-wrench" title="Status: <%- matches[i].status %>" alt="<%- matches[i].status %>" style="color:red"></span> |
25 | | - <%}%> |
26 | | - </div> |
27 | | - </div> |
28 | | - </li> |
29 | | - <% } %> |
30 | | - </ul> |
| 1 | +<div class="col-xs-12"> |
| 2 | + <span> <a href="/search?floor=<%- floor %>"> <%- floor.toLowerCase() %> </a></span> > |
| 3 | + <span> <a href="/search?floor=<%- floor %>&room=<%- room %>"> <%- room.toLowerCase() %> </a></span> > |
| 4 | + <span> <a href="/search?floor=<%- floor %>&room=<%- room %>&location=<%- location %>"> <%- location.toLowerCase() %> </a></span> > |
| 5 | + <span> <a href="/search?fixture=<%- fixture %>"> <%- fixture.toLowerCase() %> </a></span> |
| 6 | +</div> |
| 7 | +<div class="well col-xs-12"> |
| 8 | + <div class="col-xs-2"> |
| 9 | + <% if (picture === undefined || picture === '') { %> |
| 10 | + <img class="itemImg" src="noImg.png" /> |
| 11 | + <% }else{ %> |
| 12 | + <img class="itemImg" src=" <%- picture %> " /> |
| 13 | + <%}%> |
| 14 | + </div> |
| 15 | + <div class="itemTitle col-xs-8"> |
| 16 | + <h4> <a href="/<%- uuid %>"> <%- fixture.toUpperCase().bold() %> </a> </h4> |
| 17 | + <span> <%- model.toLowerCase().italics() %> </span> |
| 18 | + </div> |
| 19 | + <div class="itemImg col-xs-2"> |
| 20 | + <% if (status === 'broken') { %> |
| 21 | + <span class="glyphicon glyphicon-wrench" title="Status: <%- status %>" alt="<%- status %>" style="color:red"></span> |
| 22 | + <%}%> |
| 23 | + </div> |
| 24 | +</div> |
0 commit comments