Skip to content

Commit

Permalink
set page title, translate some strings and use org specific versions …
Browse files Browse the repository at this point in the history
…instead of project specific.
  • Loading branch information
hahn-kev committed Jun 6, 2024
1 parent 87e4e32 commit d26f5f0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
8 changes: 8 additions & 0 deletions frontend/src/lib/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@
It is provided as a service to language communities by [SIL Language Technology](https://software.sil.org/) and \
the [Linguistics Institute at Payap University](https://li.payap.ac.th/) in Chiang Mai, Thailand."
},
"org": {
"table": {
"title": "Organizations",
"name": "Name",
"created_at": "Created",
"members": "Members"
},
},
"project": {
"create": {
"title": "Create Project",
Expand Down
18 changes: 8 additions & 10 deletions frontend/src/routes/(authenticated)/org/list/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ TODO:
* Paging
-->

<Page wide>
<Page wide title={$t('org.table.title')}>
<h1 class="text-3xl text-left grow max-w-full mb-4 flex gap-4 items-center">
Organisations
{$t('org.table.title')}
<Icon icon="i-mdi-account-group-outline" size="text-5xl" />
</h1>

Expand All @@ -90,15 +90,15 @@ TODO:
<thead>
<tr class="bg-base-200">
<th on:click={() => handleSortClick('name')} class="cursor-pointer hover:bg-base-300">
{$t('project.table.name')}
{$t('org.table.name')}
<span class:invisible={sortColumn !== 'name'} class="{`i-mdi-sort-${sortDir}`} text-xl align-[-5px] ml-2" />
</th>
<th on:click={() => handleSortClick('members')} class="cursor-pointer hover:bg-base-300 hidden @md:table-cell">
{$t('project.table.members')}
{$t('org.table.members')}
<span class:invisible={sortColumn !== 'members'} class="{`i-mdi-sort-${sortDir}`} text-xl align-[-5px] ml-2" />
</th>
<th on:click={() => handleSortClick('created_at')} class="cursor-pointer hover:bg-base-300 hidden @xl:table-cell">
{$t('project.table.created_at')}
{$t('org.table.created_at')}
<span class:invisible={sortColumn !== 'created_at'} class="{`i-mdi-sort-${sortDir}`} text-xl align-[-5px] ml-2" />
</th>
</tr>
Expand All @@ -107,11 +107,9 @@ TODO:
{#each displayOrgs as org}
<tr>
<td>
<span class="flex gap-2 items-center">
<a class="link" href={`/org/${org.id}`}>
{org.name}
</a>
</span>
<a class="link" href={`/org/${org.id}`}>
{org.name}
</a>
</td>
<td class="hidden @md:table-cell">
{$number(org.memberCount)}
Expand Down

0 comments on commit d26f5f0

Please sign in to comment.