Skip to content

Commit

Permalink
Add public icon and upload information
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Jun 28, 2017
1 parent 5ad8bb5 commit bfa40fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pybel_web/templates/network_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ <h3 class="panel-title">Curated Networks</h3>
<div class="list-group-item">
<h4 class="list-group-item-heading">{{ network.name }}
<small class="text-muted">{{ network.version }}</small>
{% if not network.report or network.report.public %}
<span class="glyphicon glyphicon-globe" aria-hidden="true"></span>
{% endif %}
</h4>
<div class="list-group-item-text">
<p>{{ network.description }}</p>
Expand Down
2 changes: 2 additions & 0 deletions src/pybel_web/templates/summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ <h3 class="panel-title">Provenance
</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Upload</dt>
<dd>{{ network.report.user.email }} at {{ network.report.created }}</dd>
<dt>Authors</dt>
<dd>{{ graph.document['authors'] }}</dd>
<dt>Contact</dt>
Expand Down
1 change: 1 addition & 0 deletions src/pybel_web/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def dcn(node):
contradictory_triplets=contradictory_triplets,
unstable_triplets=unstable_triplets,
graph=graph,
network=manager.session.query(Network).get(network_id),
network_id=network_id,
time=None,
undefined_namespaces=sorted(undefined_namespaces),
Expand Down

0 comments on commit bfa40fa

Please sign in to comment.