ActiveAdmin.register_page "Dashboard" do

  menu :priority => 1, :label => proc{ I18n.t("active_admin.dashboard") }

  content :title => proc{ I18n.t("active_admin.dashboard") } do
    columns do
      column do
        panel "Statistics" do
          para " There are #{Place.count} places: #{Depot.count} depots, #{Farm.count} farms"
        end
      end
      column do
        panel "Most recent Farm activity" do
          ul do
            Farm.find(:all, order: "updated_at desc", limit: 10).map do |farm|
              li link_to(farm.name, admin_farm_path(farm))
            end
          end
        end
      end
      column do
        panel "Most recent Depot activity" do
          ul do
            Depot.find(:all, order: "updated_at desc", limit: 10).map do |depot|
              li link_to(depot.name, admin_depot_path(depot))
            end
          end
        end
      end
    end
  end
end

ActiveAdmin.register_page "Dashboard" do

  menu :priority => 1, :label => proc{ I18n.t("active_admin.dashboard") }

  content :title => proc{ I18n.t("active_admin.dashboard") } do
    panel "Teikei" do
      para "version #{`git describe --tags --abbrev=0`}"
    end
    columns do
      column do
        panel "Statistics" do
          para " There are #{Place.count} places: #{Depot.count} depots, #{Farm.count} farms"
        end
      end
      column do
        panel "Most recent Farm activity" do
          ul do
            Farm.find(:all, order: "updated_at desc", limit: 10).map do |farm|
              li link_to(farm.name, admin_farm_path(farm))
            end
          end
        end
      end
      column do
        panel "Most recent Depot activity" do
          ul do
            Depot.find(:all, order: "updated_at desc", limit: 10).map do |depot|
              li link_to(depot.name, admin_depot_path(depot))
            end
          end
        end
      end
    end
  end
end

Add version info to backend.
Add version info to backend.
