43d9d2eba7
Allows BookStack to be installed at a non-root location on a domain. Closes #40.
35 lines
1 KiB
PHP
35 lines
1 KiB
PHP
@extends('base')
|
|
|
|
@section('content')
|
|
|
|
@include('settings/navbar', ['selected' => 'roles'])
|
|
|
|
<div class="container small">
|
|
|
|
<div class="row action-header">
|
|
<div class="col-sm-8">
|
|
<h1>User Roles</h1>
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<p></p>
|
|
<a href="{{ baseUrl("/settings/roles/new") }}" class="button float right pos"><i class="zmdi zmdi-lock-open"></i>Add new role</a>
|
|
</div>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>Role Name</th>
|
|
<th></th>
|
|
<th class="text-right">Users</th>
|
|
</tr>
|
|
@foreach($roles as $role)
|
|
<tr>
|
|
<td><a href="{{ baseUrl("/settings/roles/{$role->id}") }}">{{ $role->display_name }}</a></td>
|
|
<td>{{ $role->description }}</td>
|
|
<td class="text-right">{{ $role->users->count() }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
</div>
|
|
|
|
@stop
|