zorab47 / active_admin-sortable_tree

Show ActiveAdmin index as a nested tree with drag'n'drop
MIT License
162 stars 127 forks source link

possibility of displaying multiple labels? #26

Closed raedatoui closed 8 years ago

raedatoui commented 10 years ago

It only displays the first label. Was hoping it would work like the default AA columns

  index :as => :sortable do
    label "Logo" do |company|
      image_tag company.logo, width: 75
    end
    label :name
    label :slug
    label "profile" do |company|
      if company.profile
        link_to company.profile.name, admin_profile_path(company.profile)
      end
    end
    actions
  end
nebirhos commented 10 years ago

Yep the goal was that, but we haven't found a nice way to display adjacent labels. Suggestions and pull requests are welcome!