Skip to content

Commit 09f3109

Browse files
committed
update
1 parent 17f9006 commit 09f3109

File tree

6 files changed

+3
-140
lines changed

6 files changed

+3
-140
lines changed

app/Controllers/HomeController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function index(Request $request, Response $response)
1818

1919
public function dashboard(Request $request, Response $response)
2020
{
21-
$users = User::get();
21+
$users = User::limit(10)->get();
2222
return view($response,'admin/dashboard/index.twig', compact('users'));
2323
}
2424
}

public/assets/css/pagination.css

Lines changed: 0 additions & 66 deletions
This file was deleted.

public/assets/js/dashboard.js

Lines changed: 0 additions & 53 deletions
This file was deleted.

resources/views/admin/dashboard/index.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
<button type="button" class="btn btn-sm btn-outline-secondary">Share</button>
1111
<button type="button" class="btn btn-sm btn-outline-secondary">Export</button>
1212
</div>
13-
<button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle">
14-
<span data-feather="calendar"></span>
15-
This week
16-
</button>
1713
</div>
1814
</div>
1915

resources/views/index.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="description" content="">
88
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
99
<meta name="generator" content="Hugo 0.84.0">
10-
<title>Starter App</title>
10+
<title>Slim Starter App</title>
1111
{% include 'partials/css.twig' %}
1212
<meta name="theme-color" content="#7952b3">
1313
<style>

resources/views/layouts/app.twig

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
<!-- Custom styles for this template -->
1212
{% include 'partials/css.twig' %}
1313
<link href="{{ assets('assets/css/dashboard.css') }}" rel="stylesheet">
14-
<link href="{{ assets('assets/css/pagination.css') }}" rel="stylesheet">
1514
</head>
1615
<body>
1716

1817
<header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
19-
<a class="navbar-brand col-md-3 col-lg-2 me-0 px-3" href="#">Company name</a>
18+
<a class="navbar-brand col-md-3 col-lg-2 me-0 px-3" href="#"> Starter App</a>
2019
<button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
2120
<span class="navbar-toggler-icon"></span>
2221
</button>
@@ -60,18 +59,6 @@
6059
Dashboard
6160
</a>
6261
</li>
63-
<li class="nav-item">
64-
<a class="nav-link" href="#">
65-
<span data-feather="shopping-cart"></span>
66-
Products
67-
</a>
68-
</li>
69-
<li class="nav-item">
70-
<a class="nav-link" href="#">
71-
<span data-feather="users"></span>
72-
Customers
73-
</a>
74-
</li>
7562
</ul>
7663

7764
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
@@ -89,6 +76,5 @@
8976
</div>
9077
</div>
9178
{% include 'partials/js.twig' %}
92-
<script src="{{ assets('assets/js/dashboard.js') }}"></script>
9379
</body>
9480
</html>

0 commit comments

Comments
 (0)