diff --git a/catalog/context_processors.py b/catalog/context_processors.py index 4f6c041e..786ef0f0 100644 --- a/catalog/context_processors.py +++ b/catalog/context_processors.py @@ -10,6 +10,7 @@ def pgs_settings(request): def pgs_urls(request): return { + 'nhgri_url' : constants.USEFUL_URLS['NHGRI_URL'], 'baker_url' : constants.USEFUL_URLS['BAKER_URL'], 'ebi_url' : constants.USEFUL_URLS['EBI_URL'], 'hdr_uk_cam_url' : constants.USEFUL_URLS['HDR_UK_CAM_URL'], @@ -49,3 +50,44 @@ def pgs_info(request): 'pgs_table_helper': constants.TABLE_HELPER, 'ensembl_version': constants.ENSEMBL_VERSION } + +def pgs_contributors(request): + groups = constants.PGS_GROUPS + groups_to_print = list() + html='

PGS Catalog Team: ' + + def get_group_index(group_private_index): + group = groups.get(group_private_index, None) + group_name = group['name'] + if not group in groups_to_print: + groups_to_print.append(group) + group_index = groups_to_print.index(group) + 1 + return(f'{group_index}') + + def html_author(author): + name = author['name'] + group_sup = ','.join(map(get_group_index,author['group'])) + + return f'{ name }{ group_sup }' + + html += ', '.join(map(html_author,constants.PGS_CONTRIBUTORS)) + html += '

\n' + html += '

Previous Contributors:\n' + html += ', '.join(map(html_author,constants.PGS_PREVIOUS_CONTRIBUTORS)) + + html += '

' + + return { + 'pgs_contributors': html + } \ No newline at end of file diff --git a/catalog/static/catalog/imgs/NHGRI_Logo.png b/catalog/static/catalog/imgs/NHGRI_Logo.png new file mode 100644 index 00000000..97b38fd4 Binary files /dev/null and b/catalog/static/catalog/imgs/NHGRI_Logo.png differ diff --git a/catalog/static/catalog/imgs/NHGRI_Logo_small.png b/catalog/static/catalog/imgs/NHGRI_Logo_small.png new file mode 100644 index 00000000..e51c564c Binary files /dev/null and b/catalog/static/catalog/imgs/NHGRI_Logo_small.png differ diff --git a/catalog/templates/catalog/docs/about.html b/catalog/templates/catalog/docs/about.html index 116f728a..17069db2 100644 --- a/catalog/templates/catalog/docs/about.html +++ b/catalog/templates/catalog/docs/about.html @@ -199,16 +199,12 @@

Feedback & Contact Information

Acknowledgements

-

We wish to acknowledge the help of the following people & teams for their support of the PGS Catalog: -

-

-

The development of the PGS Catalog is supported by:

+ +

We wish to acknowledge the help of the following people & teams for their support of the PGS Catalog:

+ + {{ pgs_contributors|safe }} + +

The PGS Catalog is delivered by collaboration between the EMBL-EBI and University of Cambridge and funded by NHGRI (1U24HG012542-01), Health Data Research UK and the Baker Heart & Diabetes Institute.

University of Cambridge @@ -222,6 +218,9 @@

Acknowledgements

Baker Heart and Diabetes Institute
+
+ National Human Genome Research Institute +
{% endblock %} diff --git a/catalog/templates/catalog/includes/footer.html b/catalog/templates/catalog/includes/footer.html index 5f7c65e0..f5c7f2e8 100644 --- a/catalog/templates/catalog/includes/footer.html +++ b/catalog/templates/catalog/includes/footer.html @@ -15,6 +15,9 @@
Baker Heart and Diabetes Institute
+
+ National Human Genome Research Institute +
diff --git a/catalog/templates/catalog/index.html b/catalog/templates/catalog/index.html index fbcb1991..39966a30 100644 --- a/catalog/templates/catalog/index.html +++ b/catalog/templates/catalog/index.html @@ -182,6 +182,9 @@
Development of the PGS Catalog is supported by:
Baker Heart and Diabetes Institute
+
+ National Human Genome Research Institute +