Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Add avatar

Smaug6739bfed39a65b90
diff --git a/frontend/components/DataTable.vue b/frontend/components/DataTable.vue
index 66023cb5..4bc7144d 100644
--- a/frontend/components/DataTable.vue
+++ b/frontend/components/DataTable.vue
@@ -25,26 +25,21 @@
<tr v-for="row in data">
<td v-for="header in headers">
<span v-if="row[header.key]?.type === 'html'" v-html="row[header.key]?.content"></span>
- <NuxtLink v-else-if="row[header.key]?.type === 'link'" v-html="row[header.key]?.content"
- :to="row[header.key]?.to"></NuxtLink>
+ <NuxtLink v-else-if="row[header.key]?.type === 'link'" v-html="row[header.key]?.content" :to="row[header.key]?.to"></NuxtLink>
<span v-else v-text="row[header.key]?.content"></span>
</td>
</tr>
<tr>
<td colspan="100%">
<div class="footer">
- <p>Showing {{ paginator.startIndex.value }} to {{ paginator.endIndex.value }} of {{
- paginator.totalItems.value }} entries</p>
+ <p>Showing {{ paginator.startIndex.value }} to {{ paginator.endIndex.value }} of {{ paginator.totalItems.value }} entries</p>
<div class="pagination">
<button type="button" @click="paginator.previous()" :disabled="!paginator.hasPrevious()">&lt;</button>
<button @click="paginator.setPage(1)" :class="{ active: paginator.currentPage.value === 1 }">1</button>
<span v-if="shouldShowEllipsisBefore" class="ellipsis">...</span>
- <button v-for="page in visiblePages" :key="page" @click="paginator.setPage(page)"
- :class="{ active: paginator.currentPage.value === page }">{{ page }}</button>
+ <button v-for="page in visiblePages" :key="page" @click="paginator.setPage(page)" :class="{ active: paginator.currentPage.value === page }">{{ page }}</button>
<span v-if="shouldShowEllipsisAfter" class="ellipsis">...</span>
- <button v-if="paginator.totalPages.value > 1" @click="paginator.setPage(paginator.totalPages.value)"
- :class="{ active: paginator.currentPage.value === paginator.totalPages.value }">{{
- paginator.totalPages.value }}</button>
+ <button v-if="paginator.totalPages.value > 1" @click="paginator.setPage(paginator.totalPages.value)" :class="{ active: paginator.currentPage.value === paginator.totalPages.value }">{{ paginator.totalPages.value }}</button>
<button type="button" @click="paginator.next()" :disabled="!paginator.hasNext()">&gt;</button>
</div>
</div>
@@ -133,6 +128,10 @@ td {
text-overflow: ellipsis;
width: 100%;
}
+td > span {
+ display: flex;
+ align-items: center;
+}
th {
color: var(--font-color-dark);
@@ -185,7 +184,6 @@ button {
display: flex;
width: 100%;
justify-content: space-between;
-
}
select {
diff --git a/frontend/pages/dashboard/admin/users/index.vue b/frontend/pages/dashboard/admin/users/index.vue
index c9d2914d..78f16d33 100644
--- a/frontend/pages/dashboard/admin/users/index.vue
+++ b/frontend/pages/dashboard/admin/users/index.vue
@@ -27,7 +27,7 @@ const seeIcon = ` <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox=
const rows: any = computed(() =>
userStore.users.map(res => {
return {
- username: { content: res.username },
+ username: { content: `<img style="border-radius:50%;width:30px;" src="${useAvatar(res)}"/>&nbsp;&nbsp;&nbsp;${res.username}`, type: 'html' },
firstname: { content: res.firstname },
lastname: { content: res.lastname },
email: { content: res.email },