1
0
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:
Chaoyi Zha 2016-10-01 20:51:39 -04:00
parent f25b418aae
commit b6547d2417
2 changed files with 1 additions and 45 deletions

View File

@ -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');

View File

@ -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> --}}