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>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</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 -->
|
<!-- Board -->
|
||||||
<div class="flex flex-1 flex-col px-4">
|
<div class="flex flex-1 flex-col px-4">
|
||||||
<div class="space-y-6">
|
<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}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</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>
|
<div>
|
||||||
<p>The following is DEBUG information and will be removed in the near future.</p>
|
<p>The following is DEBUG information and will be removed in the near future.</p>
|
||||||
{#if data?.user}
|
{#if data?.user}
|
||||||
|
|
|
@ -82,6 +82,9 @@
|
||||||
"add_or_import": "",
|
"add_or_import": "",
|
||||||
"empty": "",
|
"empty": "",
|
||||||
"heading": ""
|
"heading": ""
|
||||||
|
},
|
||||||
|
"repositories": {
|
||||||
|
"heading": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
|
|
|
@ -82,6 +82,9 @@
|
||||||
"add_or_import": "{addElementOpen}Ein Projekt hinzufügen{addElementClose} oder {importElementOpen}Ein Projekt importieren{importElementClose}.",
|
"add_or_import": "{addElementOpen}Ein Projekt hinzufügen{addElementClose} oder {importElementOpen}Ein Projekt importieren{importElementClose}.",
|
||||||
"empty": "Bisher keine Projekte hinzugefügt.",
|
"empty": "Bisher keine Projekte hinzugefügt.",
|
||||||
"heading": "Projekte"
|
"heading": "Projekte"
|
||||||
|
},
|
||||||
|
"repositories": {
|
||||||
|
"heading": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
|
|
|
@ -82,6 +82,9 @@
|
||||||
"add_or_import": "{addElementOpen}Add a project{addElementClose} or {importElementOpen}import a project{importElementClose}.",
|
"add_or_import": "{addElementOpen}Add a project{addElementClose} or {importElementOpen}import a project{importElementClose}.",
|
||||||
"empty": "No projects added yet.",
|
"empty": "No projects added yet.",
|
||||||
"heading": "Projects"
|
"heading": "Projects"
|
||||||
|
},
|
||||||
|
"repositories": {
|
||||||
|
"heading": "Repositories"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
|
|
|
@ -82,6 +82,9 @@
|
||||||
"add_or_import": "",
|
"add_or_import": "",
|
||||||
"empty": "עדיין אין כאן פרוייקטים.",
|
"empty": "עדיין אין כאן פרוייקטים.",
|
||||||
"heading": "פרויקטים"
|
"heading": "פרויקטים"
|
||||||
|
},
|
||||||
|
"repositories": {
|
||||||
|
"heading": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
|
|
|
@ -77,6 +77,9 @@
|
||||||
"add_or_import": "{addElementOpen}Dodaj{addElementClose} lub {importElementOpen}zaimportuj projekt{importElementClose}.",
|
"add_or_import": "{addElementOpen}Dodaj{addElementClose} lub {importElementOpen}zaimportuj projekt{importElementClose}.",
|
||||||
"empty": "Nie dodano jeszcze żadnego projektu.",
|
"empty": "Nie dodano jeszcze żadnego projektu.",
|
||||||
"heading": "Projekty"
|
"heading": "Projekty"
|
||||||
|
},
|
||||||
|
"repositories": {
|
||||||
|
"heading": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
|
|
Loading…
Reference in a new issue