diff options
author | Munyoki Kilyungi | 2023-12-07 16:49:37 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2023-12-07 16:49:37 +0300 |
commit | 78f3fe3c4080ca8e6a13cc25ecc599b25d6ba43c (patch) | |
tree | 8365e3f2bde66c699a1d96f39f5bf126338f9af0 /wqflask | |
parent | f0e669773a53bac14e2c5fc0f6a03986c8ba77f5 (diff) | |
download | genenetwork2-78f3fe3c4080ca8e6a13cc25ecc599b25d6ba43c.tar.gz |
Update how the title is constructed.
* wqflask/wqflask/templates/metadata/dataset.html: In order of
priority, display: title, label, altLabel. Otherwise, you can possibly
have the GN Accession Id forming the title of this page.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/templates/metadata/dataset.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/wqflask/wqflask/templates/metadata/dataset.html b/wqflask/wqflask/templates/metadata/dataset.html index 72ac1937..9b28dfbd 100644 --- a/wqflask/wqflask/templates/metadata/dataset.html +++ b/wqflask/wqflask/templates/metadata/dataset.html @@ -1,8 +1,9 @@ <header class="page-header text-justify"> <h1> - {% if dataset.title %} - {{ dataset.title or dataset.altLabel or dataset.label }} - {% if dataset.title != dataset.altLabel %} + {% if dataset.title or dataset.label or dataset.altLabel %} + {{ dataset.title or dataset.label or dataset.altLabel }} + {% if dataset.title != dataset.altLabel and dataset.label != dataset.altLabel %} + <br/> <small>({{ dataset.altLabel }})</small> {% endif %} {% else %} |