Skip to content

Commit

Permalink
Merge pull request PGScatalog#292 from ens-lgil/feature/announcement
Browse files Browse the repository at this point in the history
Set the default announcement and limit its display to the live websit…
  • Loading branch information
ens-lgil authored Nov 2, 2023
2 parents be0287f + a273109 commit 2a9f30d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion catalog/templates/catalog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h5 class="mt-0">An open database of polygenic scores and the relevant metadata
</div>

<!-- PGS announcement -->
{% if announcement %}
{% if announcement and is_pgs_live_site %}
<div class="pgs_centered mb-4">
<div class="pgs_banner">{{ announcement|safe }}</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions pgs_web/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
'pgs_eval_ext': 'A list of PGS that were developed in other publications and re-evaluated in the current study'
}

ANNOUNCEMENT = ''
ANNOUNCEMENT = '<div class="mb-1"><h5><i class="fa-solid fa-gears bigger"></i> Available tool: <b>pgsc_calc</b></h5></div>A reproducible workflow to calculate both PGS Catalog and custom polygenic scores.<a class="ml-2 btn btn-pgs-small pgs_no_icon_link" href="https://pgsc-calc.readthedocs.io/en/latest/"><i class="fas fas fa-angle-right"></i> See more information</a></div>'

TABLE_ROWS_THRESHOLD = 1000

Expand Down Expand Up @@ -145,7 +145,7 @@
{'name': 'Prof. John Danesh','group': ['hdruk']},
{'name': 'Michael Inouye', 'group': ['inouye']}
]

PGS_GROUPS = {
'inouye': {
'name': 'Inouye Lab',
Expand Down Expand Up @@ -183,4 +183,4 @@
{'name': 'Jonathan Marten', 'group': ['inouye']},
{'name': 'Petar Scepanovic', 'group': ['inouye']},
{'name': 'Gad Abraham', 'group': ['inouye']}
]
]

0 comments on commit 2a9f30d

Please sign in to comment.