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

46 lines
1.1 KiB
Plaintext
Raw Permalink 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-10-14 21:07:16 -05:00
<td>
<a href="<%= "#{AppConfig.wwwroot}#{account.home_folder}"%>" target="_blank" rel="noopener">
<%= account.home_folder %>
</s>
</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-10-14 22:21:12 -05:00
<td>
<a href="mailto: <%= account.contact_email %>">
<%= account.contact_email %>
</a>
</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 %>