<div class="container">
<table class="table">
<thead>
<tr>
<th scope="col">
<%= TelegramBot.human_attribute_name :id %>
</th>
<%= TelegramBot.human_attribute_name :secret %>
<%= TelegramBot.human_attribute_name :api_token %>
<%= TelegramBot.human_attribute_name :username %>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<% @telegram_bots.each do |telegram_bot| %>
<td scope="row"><%= telegram_bot.id %></td>
<td><%= telegram_bot.secret %></td>
<td><%= telegram_bot.api_token %></td>
<td><%= truncate telegram_bot.username, length: 20 %></td>
<td>
<% if policy([:staff, telegram_bot]).show? %>
<%= link_to [:staff, telegram_bot],
role: :button, class: 'btn btn-light btn-sm' do %>
<i class="far fa-eye"></i>
<% end %>
</td>
</tbody>
</table>
</div>