Some eye-candy for API keys page

这个提交包含在:
phl0 2023-04-27 22:03:59 +02:00
父节点 c57932be86
当前提交 b3e65d3f04
找不到此签名对应的密钥
GPG 密钥 ID: 48EA1E640798CA9A

查看文件

@ -27,8 +27,9 @@
<th scope="col">API Key</th> <th scope="col">API Key</th>
<th scope="col">Description</th> <th scope="col">Description</th>
<th scope="col">Last Used</th> <th scope="col">Last Used</th>
<th scope="col">Rights</th> <th scope="col">Permissions</th>
<th scope="col">Status</th> <th scope="col">Status</th>
<th scope="col">Actions</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -41,18 +42,18 @@
<?php <?php
if($row->rights == "rw") { if($row->rights == "rw") {
echo "Read & Write"; echo "<span class=\"badge badge-warning\">Read & Write</span>";
} elseif($row->rights == "r") { } elseif($row->rights == "r") {
echo "Read Only"; echo "<span class=\"badge badge-success\">Read-Only</span>";
} else { } else {
echo "Unknown"; echo "<span class=\"badge badge-dark\">Unknown</span>";
} }
?> ?>
</td> </td>
<td><span class="badge badge-pill badge-light"><?php echo ucfirst($row->status); ?></span> <td><span class="badge badge-pill badge-success"><?php echo ucfirst($row->status); ?></span></td>
<td>
<a href="<?php echo site_url('api/edit'); ?>/<?php echo $row->key; ?>" class="btn btn-outline-primary btn-sm">Edit</a> <a href="<?php echo site_url('api/edit'); ?>/<?php echo $row->key; ?>" class="btn btn-outline-primary btn-sm">Edit</a>
<a href="<?php echo site_url('api/auth/'.$row->key); ?>" target="_blank" class="btn btn-primary btn-sm">Test</a> <a href="<?php echo site_url('api/auth/'.$row->key); ?>" target="_blank" class="btn btn-primary btn-sm">Test</a>