Sha256: b60848f3d1dd6a4338d0ccb084e1234a8e838a4816973b908f866a2547c67323

Contents?: true

Size: 748 Bytes

Versions: 14

Compression:

Stored size: 748 Bytes

Contents

<div class="w-full rounded-lg border-2 border-dashed border-gray-300 hover:border-gray-400 dark:border-gray-700 dark:hover:border-gray-600 px-6 py-12 text-center">
  <h2 class="block mb-4 only:mb-0 font-semibold leading-6 text-gray-900 dark:text-gray-200">
    <%= I18n.t("active_admin.blank_slate.content", resource_name: active_admin_config.plural_resource_label) %>
  </h2>
  <% if new_action_authorized?(active_admin_config.resource_class) %>
    <%= if page_presenter.options.has_key?(:blank_slate_link)
          link = page_presenter.options[:blank_slate_link]
          instance_exec(&link) if link.is_a?(Proc)
        else
          link_to(I18n.t("active_admin.blank_slate.link"), new_resource_path)
        end
    %>
  <% end %>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
activeadmin-4.0.0.beta14 app/views/active_admin/resource/_index_blank_slate.html.erb
activeadmin-4.0.0.beta13 app/views/active_admin/resource/_index_blank_slate.html.erb
activeadmin-4.0.0.beta12 app/views/active_admin/resource/_index_blank_slate.html.erb
activeadmin-4.0.0.beta11 app/views/active_admin/resource/_index_blank_slate.html.erb
activeadmin-4.0.0.beta10 app/views/active_admin/resource/_index_blank_slate.html.erb
activeadmin-4.0.0.beta9 app/views/active_admin/resource/_index_blank_slate.html.erb
activeadmin-4.0.0.beta8 app/views/active_admin/resource/_index_blank_slate.html.erb
activeadmin-4.0.0.beta7 app/views/active_admin/resource/_index_blank_slate.html.erb
activeadmin-4.0.0.beta6 app/views/active_admin/resource/_index_blank_slate.html.erb
activeadmin-4.0.0.beta5 app/views/active_admin/resource/_index_blank_slate.html.erb
activeadmin-4.0.0.beta4 app/views/active_admin/resource/_index_blank_slate.html.erb
activeadmin-4.0.0.beta3 app/views/active_admin/resource/_index_blank_slate.html.erb
activeadmin-4.0.0.beta2 app/views/active_admin/resource/_index_blank_slate.html.erb
activeadmin-4.0.0.beta1 app/views/active_admin/resource/_index_blank_slate.html.erb