miniflux-legacy/app/templates/users.php
Frederic Guillot 82df35a59b Change the database structure to have a single database
This is a major change for the next release of Miniflux.

- There is now only one database that can supports multiple users
- There is no automated schema migration for this release
- A migration procedure is available in the ChangeLog file
2016-12-26 09:51:38 -05:00

41 lines
1.7 KiB
PHP

<div class="page-header">
<h2><?php echo $title ?></h2>
<nav>
<ul>
<li><a href="?action=config"><?php echo t('general') ?></a></li>
<li><a href="?action=profile"><?php echo t('profile') ?></a></li>
<?php if (Miniflux\Helper\is_admin()): ?>
<li class="active"><a href="?action=users"><?php echo t('users') ?></a></li>
<?php endif ?>
<li><a href="?action=services"><?php echo t('external services') ?></a></li>
<li><a href="?action=api"><?php echo t('api') ?></a></li>
<li><a href="?action=help"><?php echo t('help') ?></a></li>
<li><a href="?action=about"><?php echo t('about') ?></a></li>
</ul>
</nav>
</div>
<section>
<p><a href="?action=new-user"><?php echo t('New User') ?></a><br><br></p>
<table>
<tr>
<th><?php echo t('Username') ?></th>
<th><?php echo t('Administrator') ?></th>
<th><?php echo t('Action') ?></th>
</tr>
<?php foreach ($users as $user): ?>
<tr>
<td>
<?php echo Miniflux\Helper\escape($user['username']) ?>
</td>
<td><?php echo $user['is_admin'] ? t('Yes') : t('No') ?></td>
<td>
<?php if (Miniflux\Helper\get_user_id() != $user['id']): ?>
<a href="?action=edit-user&amp;user_id=<?php echo $user['id'] ?>"><?php echo t('Edit') ?></a> -
<a href="?action=confirm-remove-user&amp;user_id=<?php echo $user['id'] ?>"><?php echo t('Remove') ?></a>
<?php endif ?>
</td>
</tr>
<?php endforeach ?>
</table>
</section>