ftp-manager/app/views/accounts/index.html.erb

38 lines
842 B
Plaintext

<p id="notice"><%= notice %></p>
<h1>FTP Accounts</h1>
<table>
<thead>
<tr>
<th>Username</th>
<th>Password</th>
<th>Site</th>
<th>Home</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @accounts.each do |account| %>
<tr>
<td><%= account.username %></td>
<td class="passwd" data-id="passwd">
<%= link_to reveal_password_path(account.id), remote: true do %>
<i class="fa fa-lock fa-lg"></i>
<% end %>
<span>********</span>
</td>
<td><%= account.site %></td>
<td><%= account.home %></td>
<td><%= link_to 'Show', account %></td>
<td><%= link_to 'Edit', edit_account_path(account) %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Account', new_account_path %>