Skip to content

full item cards as similar items #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions public/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ article {
padding-top: 1em;
}

.miniSearchItem{
padding-bottom: 1em;
padding-top: 1em;
}
.miniItemImg{
width:100%;

}
.searchResultList {
list-style: none;
padding: 0;
Expand Down
24 changes: 5 additions & 19 deletions views/partials/itemImgInfo.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h2>How To</h2>
<%- HOWTO %>
</article>
<%}%>
<% } %>
<% if (Troubleshooting) { %>
<article class="well col-xs-12">
<h2>Need Help</h2>
Expand All @@ -13,25 +13,11 @@
<% if ( similarItems.length > 0 ) { %>
<article class="well col-xs-12">
<h2>Similar Items</h2>
<% for(var i = 0; i < similarItems.length; i++){ %>
<div class='miniSearchItem col-xs-4'>
<% if (!similarItems[i].picture) { %>
<% if (!similarItems[i].uuid) { %>
<img class="miniItemImg faded" src="noImg.png" />
<% }else{ %>
<a href="/<%- similarItems[i].uuid %>"> <img class="miniItemImg" src="noImg.png" /> </a>
<%}%>
<% } else{ %>
<% if (!similarItems[i].uuid) { %>
<img class="miniItemImg faded" src=" <%- similarItems[i].picture %> " />
<% }else{ %>
<a href="/<%- similarItems[i].uuid %>"> <img class="miniItemImg" src=" <%- similarItems[i].picture %> " /> </a>
<%} %>
<% } %>
</div>
<% } %>
<% similarItems.forEach(function(item) { %>
<%- include('./partials/itemCards', item); %>
<% }) %>
</article>
<%}%>
<% } %>
<article class="well col-xs-12">
<h2>Details</h2>
<%- details %>
Expand Down