mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 22:30:41 +08:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user