Implement org profile fallback

When an org doesn't have its own profile, but its owner does,
we fallback on that profile.

This allows for "user" orgs, where a user keeps his projects
anchored under an org, but all profile information under the user.
This commit is contained in:
Alexis Sellier
2021-07-21 16:39:58 +02:00
parent 07d2cf48eb
commit 2928e2fe14
8 changed files with 82 additions and 33 deletions
+3 -2
View File
@@ -16,6 +16,7 @@
<style>
main {
padding: 5rem 0;
width: 36rem;
}
main > header {
display: flex;
@@ -66,7 +67,7 @@
</div>
<div class="info">
<span class="title bold">
<Address compact noAvatar noBadge {address} {config} resolve/>
<Address compact noAvatar noBadge {profile} {address} {config} resolve/>
</span>
<div class="links">
{#if profile.url}
@@ -93,7 +94,7 @@
{#await org.getProjects(config) then projects}
{#each projects as project}
<div class="project">
<Project {project} org={org.address} {config} seed={profile.seed} />
<Project {project} org={org.address} config={profile.config(config)} />
</div>
{/each}
{:catch err}