added showcard partial view to items so we can load them with AJAX...\!
This commit is contained in:
parent
abe34696da
commit
5d552a5d00
1 changed files with 27 additions and 0 deletions
27
app/views/items/_showcard.html.erb
Normal file
27
app/views/items/_showcard.html.erb
Normal file
|
@ -0,0 +1,27 @@
|
|||
<div class="showcard item_<%= node.id %>">
|
||||
<div class="CardOnGraph" title="Click to Hide" id="item_' + node.id + '">
|
||||
<p class="type">
|
||||
<%= node.getData("itemcatname") %>
|
||||
</p>
|
||||
<img alt="<%= node.getData("itemcatname") %>" class="icon" height="50" src="<%= imgArray[node.getData("itemcatname")].src %>" width="50" />
|
||||
<div class="scroll">
|
||||
<a href="/items/<%=node.id%>" class="title">
|
||||
<%= node.name %>
|
||||
</a>
|
||||
<div class="contributor">
|
||||
Added by:
|
||||
<a href="/users/<%= node.getData('userid')%>">
|
||||
<%= node.getData('username') %>
|
||||
</a>
|
||||
</div>
|
||||
<div class="desc">
|
||||
<p>
|
||||
<%= node.getData('desc') %>
|
||||
</p>
|
||||
</div>
|
||||
</div><!-- div.scroll -->
|
||||
<a href="<%= node.getData('link') %>" class="link" target="_blank">
|
||||
<%= node.getData('link') %>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in a new issue