<%= button :product, 'Configurar Loja', :controller => :fb_app_ecosol_store, :action => :admin, :page_id => @page_ids  %>

<%= render :file => "#{Rails.root}/app/views/catalog/index.html.erb" %>

<%= render 'load' %>

<% if @config['page']['admin'] %>
  <%= button :product, 'Configurar Loja', :controller => :fb_app_ecosol_store_plugin, :action => :admin, :page_id => @page_ids, :class => 'colorbox'  %>
<% end %>

<%= render :file => "#{Rails.root}/app/views/catalog/index.html.erb" %>

<%= render 'load' %>

Check if the user is an admin
Check if the user is an admin
