Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
#150 reverse display of concept tool relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwunderbar666 committed Jul 11, 2022
1 parent b85c2e9 commit 4002cb7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
16 changes: 15 additions & 1 deletion flaskinventory/templates/view/elements/conceptvar/reverse.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,18 @@
</dd>
{% endif %}
</dl>
</div>
</div>
<div class="border rounded p-3">
<dl class="row">
<dt class="col-sm-3 mb-4"><h5>Tools</h5></dt>
<dd class="col-sm-9 mb-4"><small class="text-muted">These tools can measure this concept.</small></dd>
{% if entry.tools %}
<dt class="col-sm-3"></dt>
<dd class="col-sm-9 mb-4">
{% for tool in entry.tools %}
<p>{{ render_publication(tool) }}</p>
{% endfor %}
</dd>
{% endif %}
</dl>
</div>
1 change: 1 addition & 0 deletions flaskinventory/view/dgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def get_entry(unique_name: str = None, uid: str = None, dgraph_type: str = None)
query_fields += '''
datasets: ~concept_vars @filter(type("Dataset")) { uid name unique_name authors @facets published_date }
corpus: ~concept_vars @filter(type("Corpus")) { uid name unique_name authors @facets published_date }
tool: ~concept_vars @filter(type("Tool")) { uid name unique_name authors @facets published_date }
} }
'''

Expand Down

0 comments on commit 4002cb7

Please sign in to comment.