mirror of
https://github.com/cydrobolt/polr.git
synced 2024-09-19 15:11:40 +02:00
Remove old table data
This commit is contained in:
parent
f25b418aae
commit
b6547d2417
@ -23,14 +23,6 @@ class AdminController extends Controller {
|
||||
$username = session('username');
|
||||
$role = session('role');
|
||||
|
||||
$admin_users = null;
|
||||
$admin_links = null;
|
||||
|
||||
if ($this->currIsAdmin()) {
|
||||
$admin_users = User::paginate(15, ['*'], 'users_page');
|
||||
$admin_links = Link::paginate(15, ['*'], 'admin_links_page');
|
||||
}
|
||||
|
||||
$user = UserHelper::getUserByUsername($username);
|
||||
|
||||
if (!$user) {
|
||||
@ -50,6 +42,7 @@ class AdminController extends Controller {
|
||||
if (!$this->isLoggedIn()) {
|
||||
return abort(404);
|
||||
}
|
||||
|
||||
$username = session('username');
|
||||
$old_password = $request->input('current_password');
|
||||
$new_password = $request->input('new_password');
|
||||
|
@ -10,40 +10,3 @@
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
{{-- <table class="table table-hover">
|
||||
<tr>
|
||||
<th>Username</th>
|
||||
<th>Email</th>
|
||||
<th>Created At</th>
|
||||
<th>Activated</th>
|
||||
<th>API</th>
|
||||
<th>More</th>
|
||||
</tr>
|
||||
@foreach ($users as $user)
|
||||
<tr>
|
||||
<td class='wrap-text'>{{$user->username}}</td>
|
||||
<td class='wrap-text'>{{$user->email}}</td>
|
||||
<td>{{$user->created_at}}</td>
|
||||
<td>{{$user->active ? 'true' : 'false'}}</td>
|
||||
<td>
|
||||
@if ($user->active)
|
||||
<a class='activate-api-modal btn btn-sm btn-info'
|
||||
ng-click="openAPIModal($event, '{{$user->username}}', '{{$user->api_key}}', '{{$user->api_active}}', '{{$user->api_quota}}', '{{$user->id}}')">
|
||||
API info
|
||||
</a>
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a ng-click="deleteUser($event)" class='btn btn-sm btn-danger @if (session('username') == $user->username)disabled @endif'
|
||||
data-user-id='{{$user->id}}'>
|
||||
Delete
|
||||
</a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</table> --}}
|
||||
|
Loading…
Reference in New Issue
Block a user