2014-01-29 04:33:09 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="<%= admin_template_store_template_path(template["_slugs"][0]) %>">
|
2014-02-14 12:06:32 +00:00
|
|
|
<img src="<%= @store_url + template['preview']['preview']['thumb']['url'] %>" class="item-thumb" />
|
2014-01-29 04:33:09 +00:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="<%= admin_template_store_template_path(template["_slugs"][0]) %>">
|
|
|
|
<span class="item-info">
|
|
|
|
<b class="item-name"><%= template['title'] %></b>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span class="item-price">Free</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<% if @design_ids.include?(template["_id"]["$oid"]) %>
|
|
|
|
<%= link_to "Installed", "javascript:void(0);", "data-url" => template['template']['template']['url'], :class=> 'btn btn-success download-link', "disabled"=>"disabled", "data-name"=>template['title'], "data-slug"=>template["_slugs"][0], "data-id"=>template["_id"]["$oid"] %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to "Download", "javascript:void(0);", "data-url" => template['template']['template']['url'], :class=> 'btn btn-primary download-link', "data-name"=>template['title'], "data-slug"=>template["_slugs"][0], "data-id"=>template["_id"]["$oid"] %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|