Add images to store
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 275 B |
Before Width: | Height: | Size: 267 B |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 182 KiB |
Before Width: | Height: | Size: 113 KiB |
Before Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 137 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 140 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 182 KiB |
Before Width: | Height: | Size: 113 KiB |
Before Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 137 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 36 KiB |
|
@ -7,7 +7,7 @@ class Admin::TemplateStoreController < ApplicationController
|
|||
end
|
||||
|
||||
def show
|
||||
@template = JSON.parse(get_template(params[:id]))
|
||||
@template = JSON.parse(get_template(params[:id])) rescue nil
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
|
@ -78,19 +78,10 @@
|
|||
</div>
|
||||
</div>
|
||||
<div id="item-list">
|
||||
<ul class="clearfix">
|
||||
<li><a href="module_store/show"><img src="" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module 1</b><span class="item-price">Free</span></span></a></li>
|
||||
<li><a href="module_store/show"><img src="" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module 2</b><span class="item-price">Free</span></span></a></li>
|
||||
<li><a href="module_store/show"><img src="" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module 3</b><span class="item-price">Free</span></span></a></li>
|
||||
<li><a href="module_store/show"><img src="" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module 4</b><span class="item-price">Free</span></module_store/showspan></a></li>
|
||||
<li><a href=""><img src="" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module 5</b><span class="item-price">Free</span></span></a></li>
|
||||
<li><a href="module_store/show"><img src="" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module 6</b><span class="item-price">Free</span></span></a></li>
|
||||
<li><a href="module_store/show"><img src="" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module 7</b><span class="item-price">Free</span></span></a></li>
|
||||
<li><a href="module_store/show"><img src="" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module 8</b><span class="item-price">Free</span></span></a></li>
|
||||
<li><a href="module_store/show"><img src="" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module 9</b><span class="item-price">Free</span></span></a></li>
|
||||
<li><a href="module_store/show"><img src="" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module 10</b><span class="item-price">Free</span></span></a></li>
|
||||
<li><a href="module_store/show"><img src="" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module 11</b><span class="item-price">Free</span></span></a></li>
|
||||
<li><a href="module_store/show"><img src="" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module 12</b><span class="item-price">Free</span></span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<ul class="clearfix">
|
||||
<% 12.times do |i| %>
|
||||
<li><a href="module_store/show?m=<%= i + 1 %>"><img src="/assets/module/thumb/mt<%= i + 1 %>.jpg" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module <%= i + 1 %></b><span class="item-price">Free</span></span></a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
|
@ -21,11 +21,11 @@
|
|||
<div id="content" class="clearfix">
|
||||
<div class="side">
|
||||
<div id="item-info">
|
||||
<img src="" alt="" class="item-thumb">
|
||||
<img src="/assets/module/thumb/mt<%= params[:m] %>.jpg" alt="" class="item-thumb">
|
||||
<h2 class="item-name">Module Name</h2>
|
||||
<a id="download" href="">free download</a>
|
||||
<ul class="item-extra-info">
|
||||
<li><span class="title">downloads</span><span class="count">15,241</span></li>
|
||||
<li><span class="title">downloads</span><span class="count"><%= Random.rand(20000) %></span></li>
|
||||
</ul>
|
||||
<h3>who use it?</h3>
|
||||
<ul class="user-list">
|
||||
|
|
|
@ -88,8 +88,16 @@
|
|||
</li>
|
||||
<% end %>
|
||||
<% (12-@templates.size).times do |i| %>
|
||||
<li><a href="template_store/show"><img src="" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Template <%= i + @templates.size + 1 %></b><span class="item-price">Free</span></span></a></li>
|
||||
<% end %>
|
||||
<li>
|
||||
<%= link_to admin_template_store_template_path('show', :t => i + 1) do %>
|
||||
<img src="/assets/template/thumb/tb<%= i + 1 %>.jpg" alt="" class="item-thumb">
|
||||
<span class="item-info">
|
||||
<b class="item-name">Template <%= i + 1 %></b>
|
||||
<span class="item-price">Free</span>
|
||||
</span>
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
<div id="content" class="clearfix">
|
||||
<div class="side">
|
||||
<div id="item-info">
|
||||
<img src="" alt="" class="item-thumb">
|
||||
<img src="/assets/template/thumb/tb<%= params[:t] %>.jpg" alt="" class="item-thumb">
|
||||
<h2 class="item-name">Template Name</h2>
|
||||
<a id="download" href="">free download</a>
|
||||
<ul class="item-extra-info">
|
||||
|
|