diff --git a/src/data/People.ts b/src/data/People.ts index 71a28c1..00c3643 100644 --- a/src/data/People.ts +++ b/src/data/People.ts @@ -116,7 +116,7 @@ export const People: readonly Person[] = [ { id: 'camilo', name: 'Camilo Montes de Haro', - active: true, + active: false, advised: true, level: 'undergrad', dept: 'The Information School', @@ -242,7 +242,7 @@ export const People: readonly Person[] = [ { id: 'kmack3', name: 'Avery Mack', - active: true, + active: false, advised: false, level: 'phd', dept: 'Computer Science & Engineering', @@ -256,7 +256,7 @@ export const People: readonly Person[] = [ { id: 'salac', name: 'Jean Salac', - active: true, + active: false, advised: true, level: 'postdoc', dept: 'The Information School', @@ -356,7 +356,7 @@ export const People: readonly Person[] = [ { id: 'latoza', name: 'Thomas D. LaToza', - active: true, + active: false, advised: false, level: 'faculty', dept: 'Computer Science', diff --git a/src/routes/(app)/lab/+page.svelte b/src/routes/(app)/lab/+page.svelte index 7cb8f9f..7a6c25d 100644 --- a/src/routes/(app)/lab/+page.svelte +++ b/src/routes/(app)/lab/+page.svelte @@ -18,6 +18,12 @@ window.location.hash.substring(1) === id ); } + + $: affiliated = $profile.getPeople( + (person) => + person.active && !person.advised && person.level !== 'faculty', + (person) => -person.startdate + ); @@ -125,13 +131,15 @@ <Person {person} highlight={isPersonHighlighted(person.id)} /> {/each} -<Linkable id="affiliate-phd">Affiliated Ph.D. students</Linkable> +{#if affiliated.length > 0} + <Linkable id="affiliate-phd">Affiliated Ph.D. students</Linkable> -{#each $profile.getPeople( (person) => person.active && !person.advised && person.level !== 'faculty', (person) => -person.startdate ) as person} - <Person {person} highlight={isPersonHighlighted(person.id)} /> -{/each} + {#each affiliated as person} + <Person {person} highlight={isPersonHighlighted(person.id)} /> + {/each} +{/if} -<Linkable id="collaborators">Faculty Collaborators</Linkable> +<Linkable id="collaborators">Active Faculty Collaborators</Linkable> <p ><em