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 def index
if get_site.site_token? if get_site.site_token?
if get_site.store_confirmation
@extensions = get_extensions @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 = []

View File

@ -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?
if @site.store_confirmation
@design_ids = Design.all.map{|d| d.template_store_id} @design_ids = Design.all.map{|d| d.template_store_id}
@templates = get_templates.parsed_response @templates = get_templates.parsed_response
render :layout => false 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

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="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? %>
<% if @store_confirmation %>
<%= render :partial => "admin/site_registration/site_registration" %> <%= 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>

View File

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