40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
<div class="container">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">
|
|
<%= TelegramBot.human_attribute_name :id %>
|
|
</th>
|
|
<th scope="col">
|
|
<%= TelegramBot.human_attribute_name :secret %>
|
|
</th>
|
|
<th scope="col">
|
|
<%= TelegramBot.human_attribute_name :api_token %>
|
|
</th>
|
|
<th scope="col">
|
|
<%= TelegramBot.human_attribute_name :username %>
|
|
</th>
|
|
<th scope="col"></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @telegram_bots.each do |telegram_bot| %>
|
|
<tr>
|
|
<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 %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|