       end
     end
   end
-  def do_panel(_conn, %{contents: %{contents: content}}, _table_opts) do
+  def do_panel(_conn, %{contents: %{contents: content}, table_for: []}, _table_opts) do
     div do
       case content do
         {:safe, _} -> Phoenix.HTML.safe_to_string(content)

      |> Xain.raw
    end
  end
  def do_panel(_conn, schema) do
    ""
  end


    theme_module(conn, Table).theme_panel(conn, schema)
  end

  def do_panel(conn, %{table_for: %{resources: resources, columns: columns, opts: opts}, contents: []}, table_opts) do
    table(Dict.merge(table_opts, opts)) do
      table_head(columns)
      tbody do
