FEATURE: add role into list of all users

This commit is contained in:
Michal Kváček
2016-01-24 19:42:53 +01:00
parent f5b7c4ea8f
commit 8168525c97
3 changed files with 21 additions and 8 deletions
+10
View File
@@ -16,6 +16,16 @@
font-weight: bolder;
}
.user-img {
position: relative;
}
.user-img .badge {
position: absolute;
top: 1%;
left: 43%;
}
/**
Footer
*/
@@ -1,7 +0,0 @@
@extends('admin.layout')
@section('pageName', @trans('admin/userManagement.editUser'))
@section('content')
@stop
@@ -15,9 +15,19 @@
<a href="{{route('users.detail', ['id' => $user->id])}}">
<div class="user-img">
<img src="{{$user->gravatar(350)}}" alt="" />
<span class="badge @if($user->role == \App\Models\User::ROLE_ADMIN)
alert
@elseif ($user->role == \App\Models\User::ROLE_EDITOR)
warning
@else
secondary
@endif">
{{strtoupper($user->role)}}
</span>
</div>
<div class="user-info text-center">
{{$user->name}}
{{ $user->name}}
</div>
</a>
</div>