mirror of
https://hk.gh-proxy.com/https://github.com/NodeBB/nodebb-plugin-write-api.git
synced 2025-10-04 04:31:14 +08:00
proper use of user icons in user tokens list
This commit is contained in:
parent
cdb494c906
commit
25f285704e
2 changed files with 8 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
.write-api {
|
||||
&.img-small {
|
||||
.page-admin-write-api {
|
||||
.user-tokens .img-small {
|
||||
max-width: 20px;
|
||||
}
|
||||
}
|
|
@ -37,7 +37,7 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Active Tokens</div>
|
||||
<div class="panel-body">
|
||||
<table class="table table-striped">
|
||||
<table class="table table-striped user-tokens">
|
||||
<tr>
|
||||
<th>User/Token</th>
|
||||
</tr>
|
||||
|
@ -46,7 +46,11 @@
|
|||
<td>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">
|
||||
<img class="img-circle write-api img-small" src="{tokens.user.picture}" title="{tokens.user.username} (uid {tokens.uid})">
|
||||
<!-- IF tokens.user.picture -->
|
||||
<img class="avatar avatar-sm avatar-rounded" src="{tokens.user.picture}" title="{tokens.user.username} (uid {tokens.uid})">
|
||||
<!-- ELSE -->
|
||||
<div class="avatar avatar-sm avatar-rounded" style="background-color: {tokens.user.icon:bgColor};">{tokens.user.icon:text}</div>
|
||||
<!-- ENDIF tokens.user.picture -->
|
||||
</span>
|
||||
<input type="text" class="form-control" value="{tokens.access_token}" readonly />
|
||||
<span class="input-group-btn">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue