A hosting service for Jekyll Blogs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
1.3 KiB

% layout 'standard', title => 'Admin Panel', sb_active => 'admin';
%= include 'admin/_nav', page => 'people'
%= include '_base/status_window';
% if ( $people ) {
<table style="border: 1px solid #ccc" class="table">
<tbody>
<tr>
<th class="text-nowrap">Name</th>
<th class="text-nowrap">Email Address</th>
<th class="text-nowrap">Created</th>
<th class="text-nowrap">Become User</th>
</tr>
</thead>
<tbody>
% for my $user ( @{$people} ) {
<tr>
<td><a href="<%= $c->url_for( 'show_admin_person', { id => $user->id } ) %>"><%= $user->name %></a></td>
<td><%= $user->email %></td>
<td><%= $user->created_at->strftime( "%F" ) %></td>
<td>
<form style="margin-top: 1.5em; display: inline;" method="POST" action="<%= $c->url_for( 'do_admin_become' ) %>">
<input type="hidden" name="uid" value="<%= $user->id %>">
<input type="hidden" name="url" value="<%= $c->url_for %>">
<button type="submit" class="btn btn-sm btn-outline-danger">Login</button>
</form>
</td>
</tr>
% }
</tbody>
</table>
% }