.contain
  %h1 Listing bots

  %div{style: "align-self: start;"}
    - if policy(Bot).new?
      = link_to '+ New Bot', new_bot_path

.contain
  - @bots.each do |bot|
    = link_to bot, class: "bot" do
      %h1= bot.name
      -# %span= bot.summary
      -# .social-links
        - bot.social_links.each do |social_link|
          = social_link.to_icon.html_safe
      -# %p= bot.about
      -# %span #{bot.followers.count} Followers
      -# &nbsp;&nbsp;
      -# %span #{bot.microposts.count} Posts
      - if policy(bot).destroy?
        = link_to 'Edit', edit_bot_path(bot)
        = link_to 'Delete', bot, method: :delete, data: { confirm: 'Are you sure?' }
-# %h1 Listing bots

-# %table
-#   %thead
-#     %tr
-#       %th Name
-#       %th Telegram api token
-#       %th Discord api token
-#       %th User
-#       %th Profile
-#       %th
-#       %th
-#       %th

-#   %tbody
-#     - @bots.each do |bot|
-#       %tr
-#         %td= bot.name
-#         %td= bot.telegram_api_token
-#         %td= bot.discord_api_token
-#         %td= bot.user
-#         %td= bot.profile
-#         %td= link_to 'Show', bot
-#         %td= link_to 'Edit', edit_bot_path(bot)
-#         %td= link_to 'Destroy', bot, method: :delete, data: { confirm: 'Are you sure?' }

-# %br

-# = link_to 'New Bot', new_bot_path
