Skip to content

Commit

Permalink
Add "share" links to region view
Browse files Browse the repository at this point in the history
  • Loading branch information
abought committed Dec 17, 2019
1 parent b42459e commit 5fa39e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions locuszoom_plotting_service/templates/gwas/gwas_region.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<span class="text-muted">Uploaded by: {{ gwas.owner.display_name }}, {{ gwas.created | date }}</span>
{% if gwas.is_public %}<span class="badge badge-info">Public</span> {% else %}<span class="badge badge-warning">Private</span>{% endif %}
{% if gwas.pmid %}<a href="https://www.ncbi.nlm.nih.gov/pubmed/{{gwas.pmid}}" target="_blank" class="badge badge-dark">PubMed</a>{% endif %}
{% if gwas.owner == request.user %}(<a href="{% url 'gwas:edit' gwas.slug %}">edit</a>)
{% if not gwas.is_public %}(<a href="{% url 'gwas:share' gwas.slug %}">share</a>){% endif %}
{% endif %}
</div>
</div>

Expand Down

0 comments on commit 5fa39e9

Please sign in to comment.