Skip to content

Commit 2189e45

Browse files
authored
Merge pull request #1097 from monarch-initiative/issue-878-move-extra-info
Move "extra info" to the top of the node page
2 parents 7b6ab04 + 3c46671 commit 2189e45

3 files changed

Lines changed: 20 additions & 49 deletions

File tree

frontend/src/pages/node/PageNode.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<SectionAssociations :node="node" />
2929
<SectionBreadcrumbs :node="node" />
3030
<SectionHierarchy :node="node" />
31-
<SectionExtra :node="node" />
3231
<Teleport to="body">
3332
<TheTableOfContents />
3433
</Teleport>
@@ -45,7 +44,6 @@ import { addEntry } from "@/global/history";
4544
import { appDescription, appTitle } from "@/global/meta";
4645
import SectionBreadcrumbs from "@/pages/node/SectionBreadcrumbs.vue";
4746
import SectionAssociations from "./SectionAssociations.vue";
48-
import SectionExtra from "./SectionExtra.vue";
4947
import SectionHierarchy from "./SectionHierarchy.vue";
5048
import SectionOverview from "./SectionOverview.vue";
5149
import SectionTitle from "./SectionTitle.vue";

frontend/src/pages/node/SectionExtra.vue

Lines changed: 0 additions & 47 deletions
This file was deleted.

frontend/src/pages/node/SectionOverview.vue

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@
113113
</AppLink>
114114
</AppFlex>
115115
</AppDetail>
116+
<AppDetail :blank="!node.provided_by_link" title="Ingest Documentation">
117+
<AppLink :to="node.provided_by_link?.url || ''">
118+
{{ node.provided_by_link?.id || node.provided_by }}
119+
</AppLink>
120+
</AppDetail>
116121
<AppDetail
117122
:blank="!otherMappings.length"
118123
title="Other Mappings"
@@ -128,6 +133,21 @@
128133
</AppLink>
129134
</AppFlex>
130135
</AppDetail>
136+
<!-- external references -->
137+
<AppDetail
138+
:blank="!node.external_links?.length"
139+
title="External References"
140+
:full="true"
141+
>
142+
<AppFlex align-h="left" gap="small">
143+
<AppLink
144+
v-for="(link, index) of node.external_links"
145+
:key="index"
146+
:to="link.url || ''"
147+
>{{ link.id }}</AppLink
148+
>
149+
</AppFlex>
150+
</AppDetail>
131151
</AppDetails>
132152
</AppSection>
133153
</template>

0 commit comments

Comments
 (0)