email confirm notice for admin added

This commit is contained in:
Harry Bomrah 2014-02-27 19:07:01 +08:00
parent befaae9b13
commit 18aade6878
4 changed files with 20 additions and 5 deletions

View File

@ -2,7 +2,13 @@ class Admin::ModuleStoreController < OrbitBackendController
def index
if get_site.site_token?
@extensions = get_extensions
if get_site.store_confirmation
@extensions = get_extensions
@store_confirmation = true
else
@extensions = []
@store_confirmation = false
end
@downloaded_extensions = get_downloaded_extension
else
@extensions = []

View File

@ -8,9 +8,13 @@ class Admin::TemplateStoreController < OrbitBackendController
def index
@site = Site.first
if @site.site_token?
@design_ids = Design.all.map{|d| d.template_store_id}
@templates = get_templates.parsed_response
render :layout => false
if @site.store_confirmation
@design_ids = Design.all.map{|d| d.template_store_id}
@templates = get_templates.parsed_response
render :layout => false
else
render :partial => "admin/site_registration/not_confirmed_store"
end
else
render :partial => "admin/site_registration/site_registration"
end

View File

@ -185,7 +185,11 @@
<div class="panel-heading"><i class="icon-shopping-cart"></i><span class="break"></span><%= t(:module_store) %></div>
<div class="pannel-body">
<% if @extensions.empty? %>
<%= render :partial => "admin/site_registration/site_registration" %>
<% if @store_confirmation %>
<%= render :partial => "admin/site_registration/site_registration" %>
<% else %>
<%= render :partial => "admin/site_registration/not_confirmed_store" %>
<% end %>
<% else %>
<table id="mt-list" class="table main-list">
<thead>

View File

@ -0,0 +1 @@
Admin email has not been confirmed. Please confirm your email first and try again.