Skip to content

Commit

Permalink
conditionally show buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Jun 24, 2024
1 parent cb89afd commit 19260c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions _layouts/workflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,11 @@ <h1 data-toc-skip>{{ workflow.title }}</h1>
<b>FAIRness</b>

{% if jekyll.environment == "production" %}
<a style="margin-bottom: 0.2rem" href="{{ site.baseurl }}/api/workflows/{{ material.topic_id }}/{{ material.tutorial_id }}/{{ workflow.wfid }}/rocrate.zip" class="btn btn-secondary"><img src="{% link assets/images/ro-crate.png %}" style="height: 32px" alt="RO-Crate logo with flask"/> Download Workflow RO-Crate</a>
{% endif %}
{% if workflow.workflowhub_id %}
<a style="margin-bottom: 0.2rem" href="https://workflowhub.eu/workflows/{{ workflow.workflowhub_id }}" class="btn btn-secondary"><img src="{% link assets/images/workflowhub-icon.svg %}" style="height: 32px" alt="Workflowhub cloud with gears logo"/> View on WorkflowHub</a>
{% endif %}
<a style="margin-bottom: 0.2rem" href="{{ site.baseurl }}/api/workflows/#{topic_id}/#{tutorial_id}/#{wfid}/rocrate.zip" class="btn btn-secondary"><img src="{% link assets/images/ro-crate.png %}" style="height: 32px" alt="RO-Crate logo with flask"/> Download Workflow RO-Crate</a>

<a style="margin-bottom: 0.2rem" href="{{ site.baseurl }}/api/workflows/#{topic_id}/#{tutorial_id}/#{wfid}/rocrate.zip" class="btn btn-secondary"><img src="{% link assets/images/workflowhub-icon.svg %}" style="height: 32px" alt="Workflowhub cloud with gears logo"/> View on WorkflowHub</a>

</div>
<div class="col-md-9">
Expand Down

0 comments on commit 19260c0

Please sign in to comment.