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/settings/telegram_contacts/index.html.erb
2018-12-12 05:34:30 +05:00

37 lines
1.1 KiB
Text

<div class="container">
<div class="row">
<div class="col-md-3 mb-4">
<%= render partial: 'settings/nav_sidebar', locals: { tab: :telegram_contacts } %>
</div>
<div class="col-md-9">
<table class="table">
<thead>
<tr>
<th scope="col">
<%= AccountTelegramContact.human_attribute_name :id %>
</th>
<th scope="col">
<%= TelegramChat.human_attribute_name :remote_id %>
</th>
<th scope="col">
<%= TelegramChat.human_attribute_name :username %>
</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<% @account_telegram_contacts.each do |account_telegram_contact| %>
<tr>
<td scope="row"><%= account_telegram_contact.id %></td>
<td><%= account_telegram_contact.telegram_chat.remote_id %></td>
<td><%= truncate account_telegram_contact.telegram_chat.username, length: 20 %></td>
<td></td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
</div>