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

38 lines
874 B
Plaintext
Raw Normal View History

2016-08-27 21:40:21 -05:00
<p id="notice"><%= notice %></p>
2016-09-28 21:23:01 -05:00
<h1>FTP Accounts</h1>
2016-08-27 21:40:21 -05:00
<table>
<thead>
<tr>
2016-09-28 22:12:55 -05:00
<th>Home Folder</th>
2016-08-27 21:40:21 -05:00
<th>Username</th>
<th>Password</th>
2016-09-28 22:12:55 -05:00
<th>Contact eMail</th>
2016-08-27 21:40:21 -05:00
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @accounts.each do |account| %>
<tr>
2016-09-28 22:12:55 -05:00
<td><%= account.home_folder %></td>
2016-08-27 21:40:21 -05:00
<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>
2016-09-28 22:12:55 -05:00
<td><%= account.contact_email %></td>
2016-08-27 21:40:21 -05:00
<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 %>