Skip to content

Commit

Permalink
Added Create PDF button on MANE overview and gene overview pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiara Rasi committed Oct 8, 2024
1 parent 4aae1fd commit 767ff95
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- A MANE coverage report, showing coverage and coverage completeness only on MANE transcripts for the provided list of genes
- Link out from MANE overview to gene overview
- Display MANE badges on gene overview report
- `Create PDF` button on MANE overview and gene overview pages
### Changed
- Do not use stored cases/samples any more and run stats exclusively on d4 files paths provided by the user in real time
- How parameters are passed to starlette.templating since it was raising a deprecation warning.
Expand Down
6 changes: 6 additions & 0 deletions src/chanjo2/templates/gene-overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
</style>
{% endblock %}

{% block pdf_export %}
<div class="collapse navbar-collapse justify-content-end" id="bs-example-navbar-collapse-1">
<button class="navbar-brand" onclick="window.focus(); window.print();">Create PDF</button>
</div><!-- /.navbar-collapse -->
{% endblock %}

{% macro gene_stats_macro() %}
<h2>Gene: {{ gene.hgnc_symbol or gene.hgnc_id }}</h2>
<br>
Expand Down
6 changes: 6 additions & 0 deletions src/chanjo2/templates/mane-overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
</style>
{% endblock %}

{% block pdf_export %}
<div class="collapse navbar-collapse justify-content-end" id="bs-example-navbar-collapse-1">
<button class="navbar-brand" onclick="window.focus(); window.print();">Create PDF</button>
</div><!-- /.navbar-collapse -->
{% endblock %}

{% macro report_filters() %}
<div class="accordion" id="filter-accordion">
<div class="accordion-item">
Expand Down

0 comments on commit 767ff95

Please sign in to comment.