email confirm notice for admin added
This commit is contained in:
parent
befaae9b13
commit
18aade6878
|
@ -2,7 +2,13 @@ class Admin::ModuleStoreController < OrbitBackendController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
if get_site.site_token?
|
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
|
@downloaded_extensions = get_downloaded_extension
|
||||||
else
|
else
|
||||||
@extensions = []
|
@extensions = []
|
||||||
|
|
|
@ -8,9 +8,13 @@ class Admin::TemplateStoreController < OrbitBackendController
|
||||||
def index
|
def index
|
||||||
@site = Site.first
|
@site = Site.first
|
||||||
if @site.site_token?
|
if @site.site_token?
|
||||||
@design_ids = Design.all.map{|d| d.template_store_id}
|
if @site.store_confirmation
|
||||||
@templates = get_templates.parsed_response
|
@design_ids = Design.all.map{|d| d.template_store_id}
|
||||||
render :layout => false
|
@templates = get_templates.parsed_response
|
||||||
|
render :layout => false
|
||||||
|
else
|
||||||
|
render :partial => "admin/site_registration/not_confirmed_store"
|
||||||
|
end
|
||||||
else
|
else
|
||||||
render :partial => "admin/site_registration/site_registration"
|
render :partial => "admin/site_registration/site_registration"
|
||||||
end
|
end
|
||||||
|
|
|
@ -185,7 +185,11 @@
|
||||||
<div class="panel-heading"><i class="icon-shopping-cart"></i><span class="break"></span><%= t(:module_store) %></div>
|
<div class="panel-heading"><i class="icon-shopping-cart"></i><span class="break"></span><%= t(:module_store) %></div>
|
||||||
<div class="pannel-body">
|
<div class="pannel-body">
|
||||||
<% if @extensions.empty? %>
|
<% 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 %>
|
<% else %>
|
||||||
<table id="mt-list" class="table main-list">
|
<table id="mt-list" class="table main-list">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Admin email has not been confirmed. Please confirm your email first and try again.
|
Loading…
Reference in New Issue