Initial user admin page
This commit is contained in:
parent
36e8cfe1d0
commit
1466ea84eb
3 changed files with 60 additions and 0 deletions
22
templates/admin/users/index.html.ep
Normal file
22
templates/admin/users/index.html.ep
Normal file
|
@ -0,0 +1,22 @@
|
|||
% layout 'admin';
|
||||
% title 'Users';
|
||||
% content_for javascript => begin
|
||||
% end
|
||||
% if ( my $error = flash 'error' ) {
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<strong>Error!</strong> <%= $error %>
|
||||
</div>
|
||||
% } elsif ( my $success = flash 'success' ) {
|
||||
<div class="alert alert-success" role="alert">
|
||||
<strong>Success!</strong> <%= $success %>
|
||||
</div>
|
||||
% }
|
||||
<div class="list-group">
|
||||
% for my $user (@$users) {
|
||||
<a href="<%= url_for . '/' . $user->{userid} %>" class="list-group-item list-group-item-action">
|
||||
<div>
|
||||
%= $user->{email}
|
||||
</div>
|
||||
</a>
|
||||
% }
|
||||
</div>
|
Reference in a new issue