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/staff/telegram_bots/index.html.erb

41 lines
1.1 KiB
Text
Raw Normal View History

<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>
2018-12-06 19:41:07 -05:00
<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>
2018-12-06 19:41:07 -05:00
<td><%= truncate telegram_bot.username, length: 20 %></td>
2018-12-06 20:34:57 -05:00
<td>
2018-12-12 21:45:22 -05:00
<% if policy([:staff, telegram_bot]).show? %>
<%= link_to [:staff, telegram_bot],
2018-12-06 20:34:57 -05:00
role: :button, class: 'btn btn-light btn-sm' do %>
<i class="far fa-eye"></i>
<% end %>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>