diff --git a/app/assets/images/module/thumb/mt1.jpg b/app/assets/images/module/thumb/mt1.jpg
new file mode 100644
index 00000000..bab6ab79
Binary files /dev/null and b/app/assets/images/module/thumb/mt1.jpg differ
diff --git a/app/assets/images/module/thumb/mt10.jpg b/app/assets/images/module/thumb/mt10.jpg
new file mode 100644
index 00000000..404f99f8
Binary files /dev/null and b/app/assets/images/module/thumb/mt10.jpg differ
diff --git a/app/assets/images/module/thumb/mt11.jpg b/app/assets/images/module/thumb/mt11.jpg
new file mode 100644
index 00000000..81dc5f87
Binary files /dev/null and b/app/assets/images/module/thumb/mt11.jpg differ
diff --git a/app/assets/images/module/thumb/mt12.jpg b/app/assets/images/module/thumb/mt12.jpg
new file mode 100644
index 00000000..80d6a849
Binary files /dev/null and b/app/assets/images/module/thumb/mt12.jpg differ
diff --git a/app/assets/images/module/thumb/mt2.jpg b/app/assets/images/module/thumb/mt2.jpg
new file mode 100644
index 00000000..8fb3daa9
Binary files /dev/null and b/app/assets/images/module/thumb/mt2.jpg differ
diff --git a/app/assets/images/module/thumb/mt3.jpg b/app/assets/images/module/thumb/mt3.jpg
new file mode 100644
index 00000000..1fbaeabf
Binary files /dev/null and b/app/assets/images/module/thumb/mt3.jpg differ
diff --git a/app/assets/images/module/thumb/mt4.jpg b/app/assets/images/module/thumb/mt4.jpg
new file mode 100644
index 00000000..8bdc5566
Binary files /dev/null and b/app/assets/images/module/thumb/mt4.jpg differ
diff --git a/app/assets/images/module/thumb/mt5.jpg b/app/assets/images/module/thumb/mt5.jpg
new file mode 100644
index 00000000..30b009f5
Binary files /dev/null and b/app/assets/images/module/thumb/mt5.jpg differ
diff --git a/app/assets/images/module/thumb/mt6.jpg b/app/assets/images/module/thumb/mt6.jpg
new file mode 100644
index 00000000..3ae48ef1
Binary files /dev/null and b/app/assets/images/module/thumb/mt6.jpg differ
diff --git a/app/assets/images/module/thumb/mt7.jpg b/app/assets/images/module/thumb/mt7.jpg
new file mode 100644
index 00000000..f6ea651b
Binary files /dev/null and b/app/assets/images/module/thumb/mt7.jpg differ
diff --git a/app/assets/images/module/thumb/mt8.jpg b/app/assets/images/module/thumb/mt8.jpg
new file mode 100644
index 00000000..fa450b3c
Binary files /dev/null and b/app/assets/images/module/thumb/mt8.jpg differ
diff --git a/app/assets/images/module/thumb/mt9.jpg b/app/assets/images/module/thumb/mt9.jpg
new file mode 100644
index 00000000..b1fc605b
Binary files /dev/null and b/app/assets/images/module/thumb/mt9.jpg differ
diff --git a/app/assets/images/modulestore/app-icon.jpg b/app/assets/images/modulestore/app-icon.jpg
deleted file mode 100644
index 711f0481..00000000
Binary files a/app/assets/images/modulestore/app-icon.jpg and /dev/null differ
diff --git a/app/assets/images/modulestore/app.jpg b/app/assets/images/modulestore/app.jpg
deleted file mode 100644
index 66795882..00000000
Binary files a/app/assets/images/modulestore/app.jpg and /dev/null differ
diff --git a/app/assets/images/modulestore/carousel_feature.png b/app/assets/images/modulestore/carousel_feature.png
deleted file mode 100644
index ee38685f..00000000
Binary files a/app/assets/images/modulestore/carousel_feature.png and /dev/null differ
diff --git a/app/assets/images/modulestore/deault-app-icon.jpg b/app/assets/images/modulestore/deault-app-icon.jpg
deleted file mode 100644
index 3bbc5a67..00000000
Binary files a/app/assets/images/modulestore/deault-app-icon.jpg and /dev/null differ
diff --git a/app/assets/images/modulestore/dropbox.jpg b/app/assets/images/modulestore/dropbox.jpg
deleted file mode 100644
index e48bf90f..00000000
Binary files a/app/assets/images/modulestore/dropbox.jpg and /dev/null differ
diff --git a/app/assets/images/modulestore/h1_bg.png b/app/assets/images/modulestore/h1_bg.png
deleted file mode 100644
index c413594c..00000000
Binary files a/app/assets/images/modulestore/h1_bg.png and /dev/null differ
diff --git a/app/assets/images/modulestore/left_nav.png b/app/assets/images/modulestore/left_nav.png
deleted file mode 100644
index e312ed92..00000000
Binary files a/app/assets/images/modulestore/left_nav.png and /dev/null differ
diff --git a/app/assets/images/modulestore/right_nav.png b/app/assets/images/modulestore/right_nav.png
deleted file mode 100644
index df81ea5d..00000000
Binary files a/app/assets/images/modulestore/right_nav.png and /dev/null differ
diff --git a/app/assets/images/modulestore/screen-capture.jpg b/app/assets/images/modulestore/screen-capture.jpg
deleted file mode 100644
index 52475c04..00000000
Binary files a/app/assets/images/modulestore/screen-capture.jpg and /dev/null differ
diff --git a/app/assets/images/modulestore/screenshot1.jpg b/app/assets/images/modulestore/screenshot1.jpg
deleted file mode 100644
index fc562e95..00000000
Binary files a/app/assets/images/modulestore/screenshot1.jpg and /dev/null differ
diff --git a/app/assets/images/modulestore/screenshot2.jpg b/app/assets/images/modulestore/screenshot2.jpg
deleted file mode 100644
index c9837583..00000000
Binary files a/app/assets/images/modulestore/screenshot2.jpg and /dev/null differ
diff --git a/app/assets/images/modulestore/screenshot3.jpg b/app/assets/images/modulestore/screenshot3.jpg
deleted file mode 100644
index b0a9c642..00000000
Binary files a/app/assets/images/modulestore/screenshot3.jpg and /dev/null differ
diff --git a/app/assets/images/modulestore/screenshot4.jpg b/app/assets/images/modulestore/screenshot4.jpg
deleted file mode 100644
index fd11b777..00000000
Binary files a/app/assets/images/modulestore/screenshot4.jpg and /dev/null differ
diff --git a/app/assets/images/modulestore/screenshot5.jpg b/app/assets/images/modulestore/screenshot5.jpg
deleted file mode 100644
index 5231eeda..00000000
Binary files a/app/assets/images/modulestore/screenshot5.jpg and /dev/null differ
diff --git a/app/assets/images/modulestore/slide01.jpg b/app/assets/images/modulestore/slide01.jpg
deleted file mode 100644
index eb9f8eb9..00000000
Binary files a/app/assets/images/modulestore/slide01.jpg and /dev/null differ
diff --git a/app/assets/images/template/thumb/tb1.jpg b/app/assets/images/template/thumb/tb1.jpg
new file mode 100644
index 00000000..3b42d6b6
Binary files /dev/null and b/app/assets/images/template/thumb/tb1.jpg differ
diff --git a/app/assets/images/template/thumb/tb10.jpg b/app/assets/images/template/thumb/tb10.jpg
new file mode 100644
index 00000000..e33b989f
Binary files /dev/null and b/app/assets/images/template/thumb/tb10.jpg differ
diff --git a/app/assets/images/template/thumb/tb11.jpg b/app/assets/images/template/thumb/tb11.jpg
new file mode 100644
index 00000000..4cf624a0
Binary files /dev/null and b/app/assets/images/template/thumb/tb11.jpg differ
diff --git a/app/assets/images/template/thumb/tb12.jpg b/app/assets/images/template/thumb/tb12.jpg
new file mode 100644
index 00000000..6e5ebb66
Binary files /dev/null and b/app/assets/images/template/thumb/tb12.jpg differ
diff --git a/app/assets/images/template/thumb/tb2.jpg b/app/assets/images/template/thumb/tb2.jpg
new file mode 100644
index 00000000..543b45d9
Binary files /dev/null and b/app/assets/images/template/thumb/tb2.jpg differ
diff --git a/app/assets/images/template/thumb/tb3.jpg b/app/assets/images/template/thumb/tb3.jpg
new file mode 100644
index 00000000..2ec440d8
Binary files /dev/null and b/app/assets/images/template/thumb/tb3.jpg differ
diff --git a/app/assets/images/template/thumb/tb4.jpg b/app/assets/images/template/thumb/tb4.jpg
new file mode 100644
index 00000000..91da70c5
Binary files /dev/null and b/app/assets/images/template/thumb/tb4.jpg differ
diff --git a/app/assets/images/template/thumb/tb5.jpg b/app/assets/images/template/thumb/tb5.jpg
new file mode 100644
index 00000000..8ec85d0a
Binary files /dev/null and b/app/assets/images/template/thumb/tb5.jpg differ
diff --git a/app/assets/images/template/thumb/tb6.jpg b/app/assets/images/template/thumb/tb6.jpg
new file mode 100644
index 00000000..22850b37
Binary files /dev/null and b/app/assets/images/template/thumb/tb6.jpg differ
diff --git a/app/assets/images/template/thumb/tb7.jpg b/app/assets/images/template/thumb/tb7.jpg
new file mode 100644
index 00000000..15dfad01
Binary files /dev/null and b/app/assets/images/template/thumb/tb7.jpg differ
diff --git a/app/assets/images/template/thumb/tb8.jpg b/app/assets/images/template/thumb/tb8.jpg
new file mode 100644
index 00000000..150a2501
Binary files /dev/null and b/app/assets/images/template/thumb/tb8.jpg differ
diff --git a/app/assets/images/template/thumb/tb9.jpg b/app/assets/images/template/thumb/tb9.jpg
new file mode 100644
index 00000000..5cce5089
Binary files /dev/null and b/app/assets/images/template/thumb/tb9.jpg differ
diff --git a/app/assets/images/templatestore/h1_bg.png b/app/assets/images/templatestore/h1_bg.png
deleted file mode 100644
index b8f1f01b..00000000
Binary files a/app/assets/images/templatestore/h1_bg.png and /dev/null differ
diff --git a/app/assets/images/templatestore/screenshot1.jpg b/app/assets/images/templatestore/screenshot1.jpg
deleted file mode 100644
index fc562e95..00000000
Binary files a/app/assets/images/templatestore/screenshot1.jpg and /dev/null differ
diff --git a/app/assets/images/templatestore/screenshot2.jpg b/app/assets/images/templatestore/screenshot2.jpg
deleted file mode 100644
index c9837583..00000000
Binary files a/app/assets/images/templatestore/screenshot2.jpg and /dev/null differ
diff --git a/app/assets/images/templatestore/screenshot3.jpg b/app/assets/images/templatestore/screenshot3.jpg
deleted file mode 100644
index b0a9c642..00000000
Binary files a/app/assets/images/templatestore/screenshot3.jpg and /dev/null differ
diff --git a/app/assets/images/templatestore/screenshot4.jpg b/app/assets/images/templatestore/screenshot4.jpg
deleted file mode 100644
index fd11b777..00000000
Binary files a/app/assets/images/templatestore/screenshot4.jpg and /dev/null differ
diff --git a/app/assets/images/templatestore/screenshot5.jpg b/app/assets/images/templatestore/screenshot5.jpg
deleted file mode 100644
index 5231eeda..00000000
Binary files a/app/assets/images/templatestore/screenshot5.jpg and /dev/null differ
diff --git a/app/assets/images/templatestore/template-icon.jpg b/app/assets/images/templatestore/template-icon.jpg
deleted file mode 100644
index 7dca3b02..00000000
Binary files a/app/assets/images/templatestore/template-icon.jpg and /dev/null differ
diff --git a/app/assets/images/templatestore/template.jpg b/app/assets/images/templatestore/template.jpg
deleted file mode 100644
index 76fb1064..00000000
Binary files a/app/assets/images/templatestore/template.jpg and /dev/null differ
diff --git a/app/controllers/admin/template_store_controller.rb b/app/controllers/admin/template_store_controller.rb
index 16e8fc05..a8656d82 100644
--- a/app/controllers/admin/template_store_controller.rb
+++ b/app/controllers/admin/template_store_controller.rb
@@ -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
diff --git a/app/views/admin/module_store/index.html.erb b/app/views/admin/module_store/index.html.erb
index 46db0aa2..fe733a85 100644
--- a/app/views/admin/module_store/index.html.erb
+++ b/app/views/admin/module_store/index.html.erb
@@ -78,19 +78,10 @@
diff --git a/app/views/admin/template_store/show.html.erb b/app/views/admin/template_store/show.html.erb
index 4df566cb..1f895614 100644
--- a/app/views/admin/template_store/show.html.erb
+++ b/app/views/admin/template_store/show.html.erb
@@ -52,7 +52,7 @@