Update term layout

- Drop mb-3: is default on .table
- Use table-bordered (will border all cells rather than outline)
- Combine anchors in an invisible paragraph (is rendered as paragraph from markdown anyway)
- Only add regular anchor for none dwciri
This commit is contained in:
Peter Desmet 2018-10-15 13:23:56 +02:00
parent 32bc760c83
commit 7993b5cbe4
2 changed files with 12 additions and 9 deletions

View File

@ -38,7 +38,7 @@ class DwcNamespaceError(Exception):
class DwcBuildReader():
def __init__(self, dwc_build_file):
"""Custom Reader switching between to raw Github or local file"""
"""Custom Reader switching between raw Github or local file"""
self.dwc_build_file = dwc_build_file
def __enter__(self):

View File

@ -18,8 +18,8 @@ This page provides a list of all currently recommended terms of the Darwin Core
</div>
{% if class_group.iri is not none %}
{# The above will exclude the Record-level class_group #}
<table class="table table-sm border mb-3">
{# Class (the above will exclude the Record-level class_group) #}
<table class="table table-sm table-bordered">
<tbody>
<tr class="table-primary"><th colspan="2">{{ class_group.label }}<span class="badge badge-primary float-right">Class</span></th></tr>
<tr><td class="label">Identifier</td><td><a href="{{ class_group.iri }}">{{ class_group.iri }}</a></td></tr>
@ -30,8 +30,11 @@ This page provides a list of all currently recommended terms of the Darwin Core
{%endif %}
{% for term in class_group.terms %}
<a id="{{ term.namespace}}:{{ term.label }}" class="anchor"></a><a id="{{ term.label }}" class="anchor"></a>
<table class="table table-sm border mb-3">
{# Term #}
<p class="invisible">
<a id="{{ term.namespace }}:{{ term.label }}"></a>{% if term.namespace != "dwciri" %}<a id="{{ term.label }}"></a>{% endif %}
</p>
<table class="table table-sm table-bordered">
<tbody>
<tr class="table-secondary"><th colspan="2">{{ term.label }}<span class="badge badge-secondary float-right">Property</span></th></tr>
<tr><td class="label">Identifier</td><td><a href="{{ term.iri }}">{{ term.iri }}</a></td></tr>