This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/templates/admin/home.html.ep

61 lines
1.5 KiB
Text
Raw Permalink Normal View History

% layout 'admin';
% title 'Home';
% content_for javascript => begin
% end
<div class="card-deck">
<div class="card mb-3 text-center text-white bg-primary">
<div class="card-header card-inverse">
User Count
</div>
<div class="card-body">
<h2 class="card-title">
%= $user_count
</h2>
</div>
</div>
<div class="card mb-3 text-center text-white bg-success">
<div class="card-header card-inverse">
Unused Tokens
</div>
<div class="card-body">
<h2 class="card-title">
<%= $tokens->{unused} %> / <%= $tokens->{total} %>
</h2>
</div>
</div>
</div>
<div class="card-deck">
<div class="card mb-3 text-center text-white bg-danger">
<div class="card-header card-inverse">
Pending Organisations
</div>
<div class="card-body">
<h2 class="card-title">
%= $pending_orgs
</h2>
</div>
</div>
<div class="card mb-3 text-center text-white bg-danger">
<div class="card-header card-inverse">
Pending Transactions
</div>
<div class="card-body">
<h2 class="card-title">
%= $pending_trans
</h2>
</div>
</div>
</div>
<div class="card-deck">
<div class="card mb-3 text-center text-white bg-danger">
<div class="card-header card-inverse">
Unactioned Feedback
</div>
<div class="card-body">
<h2 class="card-title">
<%= $feedback->{pending} %> / <%= $feedback->{total} %>
</h2>
</div>
</div>
</div>