mirror of
https://github.com/unraid/webgui.git
synced 2026-01-01 06:59:56 -06:00
- Eliminated inline style for text alignment in user list divs to allow for more flexible styling through CSS. - This change enhances the overall layout consistency and responsiveness of the user list display.
61 lines
2.2 KiB
Plaintext
61 lines
2.2 KiB
Plaintext
Menu="Users"
|
|
Title="Users"
|
|
Tag="users"
|
|
---
|
|
<?PHP
|
|
/* Copyright 2005-2023, Lime Technology
|
|
* Copyright 2012-2023, Bergware International.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License version 2,
|
|
* as published by the Free Software Foundation.
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*/
|
|
ksort($users);
|
|
?>
|
|
<div id="title" class="title">
|
|
<span class="left">
|
|
<i class="fa fa-bell title"></i>_(Management Access)_
|
|
</span>
|
|
</div>
|
|
<div class="Panels">
|
|
<?$img = "/boot/config/plugins/dynamix/users/root.png"?>
|
|
<div class="user-list">
|
|
<a class="<?=(!empty($users['root']['desc']) ? 'info' : '')?>" href="/<?=$path?>/UserEdit?name=root">
|
|
<img src="<?=(file_exists($img) ? autov($img) : '/webGui/images/user.png')?>" class="picture" border="0" width="48" height="48">
|
|
<br>
|
|
root
|
|
<span><?=htmlspecialchars($users['root']['desc'])?></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="title">
|
|
<span class="left">
|
|
<i class="fa fa-cloud title"></i>_(Shares Access)_
|
|
</span>
|
|
</div>
|
|
<?if (count($users) == 1):?>
|
|
<p>_(No users are defined)_. _(Click **Add User** to create a user for remote shares access)_</p>
|
|
<?else:?>
|
|
<div class="Panels">
|
|
<?foreach ($users as $user):?>
|
|
<?if ($user['name'] == 'root') continue;?>
|
|
<?$img = "/boot/config/plugins/dynamix/users/{$user['name']}.png"?>
|
|
<div class="user-list">
|
|
<a class="<?=(!empty($user['desc']) ? 'info' : '')?>" href="/<?=$path?>/UserEdit?name=<?=htmlspecialchars(urlencode($user['name']))?>">
|
|
<img src="<?=(file_exists($img) ? autov($img) : '/webGui/images/user.png')?>" class="picture" border="0" width="48" height="48">
|
|
<br>
|
|
<?=htmlspecialchars($user['name'])?>
|
|
<span><?=htmlspecialchars($user['desc'])?></span>
|
|
</a>
|
|
</div>
|
|
<?endforeach;?>
|
|
</div>
|
|
<?endif;?>
|
|
<form method="POST" action="/<?=$path?>/UserAdd">
|
|
<input type="submit" value="_(Add User)_">
|
|
<input type="button" value="_(Done)_" onclick="done()">
|
|
</form>
|