1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/views/telegram_bots/index.html.erb

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(telegram_bot).show? %>
<%= link_to telegram_bot_path(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>