feat: display Repositories on Profile
When looking at the Memorandum of Understanding I realised that I should display repositories instead of projects. So I reused the new component to do just that. I could not use a list here, because I need spacing between the elements. If I were to apply Flexbox to lists it would change their semantics. But plain divs lack all kinds of semantics. I went with the next best thing and picked a section as container. Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This commit is contained in:
parent
c98a2f6117
commit
7553cda85b
6 changed files with 29 additions and 1 deletions
|
@ -98,7 +98,7 @@ You should have received a copy of the GNU Affero General Public License along w
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="w-full h-full mx-auto flex mt-8 px-8">
|
||||
<section class="w-full h-full mx-auto flex flex-wrap mt-8 px-8">
|
||||
<!-- Board -->
|
||||
<div class="flex flex-1 flex-col px-4">
|
||||
<div class="space-y-6">
|
||||
|
@ -123,6 +123,19 @@ You should have received a copy of the GNU Affero General Public License along w
|
|||
{/if}
|
||||
{/each}
|
||||
</ul>
|
||||
|
||||
<h2 class="h2 font-semibold leading-tight text-base px-4">
|
||||
{$_('page.profile.repositories.heading')}
|
||||
</h2>
|
||||
<section class="flex flex-col gap-4">
|
||||
{#each data.user.followingsMap as following}
|
||||
{#if following.type === 'Repository'}
|
||||
<div class="border border-surface-100">
|
||||
<Project collaborators={[]} {i18n} project={following} />
|
||||
</div>
|
||||
{/if}
|
||||
{/each}
|
||||
</section>
|
||||
<div>
|
||||
<p>The following is DEBUG information and will be removed in the near future.</p>
|
||||
{#if data?.user}
|
||||
|
|
|
@ -82,6 +82,9 @@
|
|||
"add_or_import": "",
|
||||
"empty": "",
|
||||
"heading": ""
|
||||
},
|
||||
"repositories": {
|
||||
"heading": ""
|
||||
}
|
||||
},
|
||||
"projects": {
|
||||
|
|
|
@ -82,6 +82,9 @@
|
|||
"add_or_import": "{addElementOpen}Ein Projekt hinzufügen{addElementClose} oder {importElementOpen}Ein Projekt importieren{importElementClose}.",
|
||||
"empty": "Bisher keine Projekte hinzugefügt.",
|
||||
"heading": "Projekte"
|
||||
},
|
||||
"repositories": {
|
||||
"heading": ""
|
||||
}
|
||||
},
|
||||
"projects": {
|
||||
|
|
|
@ -82,6 +82,9 @@
|
|||
"add_or_import": "{addElementOpen}Add a project{addElementClose} or {importElementOpen}import a project{importElementClose}.",
|
||||
"empty": "No projects added yet.",
|
||||
"heading": "Projects"
|
||||
},
|
||||
"repositories": {
|
||||
"heading": "Repositories"
|
||||
}
|
||||
},
|
||||
"projects": {
|
||||
|
|
|
@ -82,6 +82,9 @@
|
|||
"add_or_import": "",
|
||||
"empty": "עדיין אין כאן פרוייקטים.",
|
||||
"heading": "פרויקטים"
|
||||
},
|
||||
"repositories": {
|
||||
"heading": ""
|
||||
}
|
||||
},
|
||||
"projects": {
|
||||
|
|
|
@ -77,6 +77,9 @@
|
|||
"add_or_import": "{addElementOpen}Dodaj{addElementClose} lub {importElementOpen}zaimportuj projekt{importElementClose}.",
|
||||
"empty": "Nie dodano jeszcze żadnego projektu.",
|
||||
"heading": "Projekty"
|
||||
},
|
||||
"repositories": {
|
||||
"heading": ""
|
||||
}
|
||||
},
|
||||
"projects": {
|
||||
|
|
Loading…
Reference in a new issue