Skip to content

Commit

Permalink
dataset detail template now lists associated links from new link model
Browse files Browse the repository at this point in the history
  • Loading branch information
rwblair committed Nov 21, 2015
1 parent 942b3d8 commit 2dadd1e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions open_fmri/templates/dataset/dataset_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,37 @@ <h4>Publications:</h4>
<a href="{{ pubmed_link.url }}">{{ pubmed_link.title }}</a>
{% endfor %}

{% for document in object.publicationdocument.all %}
{% for document in object.publicationdocument_set.all %}
{{ document }}
{% endfor %}

{% endif %}

<h4>Sample Size:</h4>
<p>{{ object.sample_size }}</p>

<h4>Scanner Type:</h4>
<p>{{ object.scanner_type }}</p>

<h4>License:</h4>
<p><a href="{{ object.license_url }}">{{ object.license_title }}</a></p>

<h4>Accession Number:</h4>
<p>{{ object.accession_number }}</p>

{% for revision in revisions %}
<h4>Revision: {{ revision.revision_number }} <small>Date Set: {{ revision.date_set }}</small></h4>
<p><a href="{{ revision.aws_link_url }}">{{ revision.aws_link_title }}</a></p>
{% endfor %}

<h4>Linked Data:</h4>
{% for link in object.link_set.all %}
<a href="{{ link.url }}">{{ link.title }}</a><br>
{% endfor %}

<div id="disqus_thread"></div>
{% endblock %}


{% block javascript %}
{{ block.super }}
<script type="text/javascript">
Expand Down

0 comments on commit 2dadd1e

Please sign in to comment.