Skip to content
Snippets Groups Projects
Commit 6054400f authored by James Graham's avatar James Graham
Browse files

Display licence badge on data source list view - #57

parent 7650480f
No related branches found
No related tags found
1 merge request!60Merge dev pre-hackday
......@@ -221,3 +221,11 @@
{% endif %}
{% endblock %}
{% block extra_body %}
<script type="application/javascript">
$(function () {
$("[data-toggle='tooltip']").tooltip()
})
</script>
{% endblock %}
......@@ -44,6 +44,18 @@
<td>
<p>
<b>{{ datasource.name }}</b>
{% if datasource.licence %}
<a href="{% url 'datasources:licence.detail' pk=datasource.licence.pk %}"
class="badge badge-info"
data-toggle="tooltip" data-placement="bottom" title="{{ datasource.licence.name }}">
{{ datasource.licence.short_name }}
</a>
{% else %}
<span class="badge badge-warning"
data-toggle="tooltip" data-placement="bottom" title="No Licence">
No Licence
</span>
{% endif %}
</p>
<p class="pl-5">
{{ datasource.description|truncatechars:120 }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment