Overview page blocks#
Every project, dataset, sample, measurement, person and organization opens on an overview page, the first tab of its detail view. All six extend one template, overview/page.html, which defines the blocks listed here. Each record’s own template fills blocks and adds some of its own. This page lists the blocks, the template that owns each and the context entries the shared blocks read. It does not describe the plugins that build the context, which Overview plugins covers, or what each page shows to a visitor, which the screen guides for a project, a dataset, a sample and a measurement cover.
Templates#
Page |
Template |
|---|---|
Project |
|
Dataset |
|
Sample |
|
Measurement |
|
Person |
|
Organization |
|
A sample type or measurement type’s own template is named <app_label>/<model_name>_overview.html. See How to give a sample or measurement type its own overview page.
Anatomy#
A page has, in order, notices, a header, a strip of figures, and a wide content column beside a narrow side column. Below the lg breakpoint the two columns stack, content first. The side column draws these cards in order: readiness, details, timeline, people, identifiers, funding, citation, then the cards particular to the record.
Blocks of overview/page.html#
The blocks are listed in page order. An indented block sits inside the block above it.
Block |
Holds |
|---|---|
|
Alerts above the header, so they are read first. |
|
Header: the record’s image, or its icon. |
|
Header: status badges. |
|
Header: the name inside the heading. Defaults to |
|
Header: the people behind the record, from |
|
Header: the record’s keywords. |
|
Header: the buttons. Cite and Share, then |
|
Inside the actions: the |
|
The strip of figures. Empty on the shared page. |
|
The wide column. Empty on the shared page. |
|
The side column, which holds the blocks below. |
|
|
|
|
|
Inside Details: entries a record adds. |
|
Key dates in the record’s life. Empty on the shared page. |
|
|
|
|
|
|
|
|
|
Cards particular to the record. Empty on the shared page. |
|
The ECharts script, loaded only when |
A block that wraps other blocks (overview.main, overview.side, overview.details) keeps its content when you add to it with {{ block.super }}, and replaces it when you do not. The template also extends the shell’s head and extra_js blocks: head carries the schema.org description from json_ld.
Blocks the record templates add#
Page |
Fills |
Adds, in the wide column |
Adds, in the side column |
|---|---|---|---|
Project |
|
|
|
Dataset |
|
|
|
Sample |
|
|
|
Measurement |
|
|
|
Person |
|
|
|
Organization |
|
|
|
A sample or measurement type fills overview.properties, which is empty on the shared page and is where a type draws its own fields. A measurement type that records its result without a single value fills overview.result, which sits inside overview.figures.
The person and organization pages define overview.side themselves and put these blocks inside it:
Page |
Blocks in |
|---|---|
Person |
|
Organization |
|
The person page’s overview.future holds the publications and map cards and the organization page’s holds its members map. The activity blocks and the project page’s overview.map and overview.activity hold c-card.placeholder cards.
Tasks#
The decision behind this design is ADR 0023.