Skip to content

Commit 5eec556

Browse files
authored
Replace FontAwesome with Bootstrap icons (#1864)
Closes #1216
1 parent 41f77cb commit 5eec556

27 files changed

Lines changed: 142 additions & 118 deletions

src/bioregistry/app/impl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
7878
<div class="text-center">
7979
<a class="btn btn-outline-primary btn-sm mb-1" rel="me" href="https://{INTERNAL_MASTODON_SERVER}/@{INTERNAL_MASTODON_HANDLE}" title="{INTERNAL_MASTODON_HANDLE}"> @{INTERNAL_MASTODON}</a>
80-
<a class="btn btn-outline-primary btn-sm mb-1" href="{INTERNAL_REPOSITORY}"><i class="fa fa-brands fa-github"></i> Source Code</a>
80+
<a class="btn btn-outline-primary btn-sm mb-1" href="{INTERNAL_REPOSITORY}"><i class="bi bi-github"></i> Source Code</a>
8181
</div>
8282
""")
8383
BIOREGISTRY_HEADER_DEFAULT = dedent("""\
@@ -195,8 +195,8 @@
195195
<p>
196196
A Docker image is automatically built weekly following the
197197
<a href="{INTERNAL_REPOSITORY}/actions/workflows/update.yml">update workflow</a>
198-
on GitHub Actions and pushed to the <a href="https://hub.docker.com/r/{INTERNAL_DOCKERHUB_SLUG}"><i class="fab fa-docker"></i>
199-
{INTERNAL_DOCKERHUB_SLUG}</a> DockerHub repository. This image is built with the Python 3.9 alpine base image,
198+
on GitHub Actions and pushed to the <a href="https://hub.docker.com/r/{INTERNAL_DOCKERHUB_SLUG}">
199+
{INTERNAL_DOCKERHUB_SLUG}</a> DockerHub repository. This image is built with a Python alpine base image,
200200
which significantly reduces non-essential components. The final compressed image weights less than 40 MB of disk
201201
space and runs inside Docker with about 65 MB of memory at baseline. This could easily fit on a dedicated
202202
<a href="https://aws.amazon.com/ec2/instance-types/t4/">t4g.nano</a> instance on AWS that costs about
Lines changed: 19 additions & 0 deletions
Loading

src/bioregistry/app/templates/base.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</style>
4747
{% endblock %}
4848

49-
<script src="https://kit.fontawesome.com/4c86883252.js" crossorigin="anonymous"></script>
49+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css">
5050
<title>{% block title %}{% endblock %}</title>
5151
<meta name="description" content="{{ config.METAREGISTRY_DESCRIPTION }}" />
5252
<link rel="icon" type="image/svg+xml" href="/static/logo.svg">
@@ -90,22 +90,22 @@
9090
<a class="dropdown-item" href="{{ url_for("metaregistry_ui.summary") }}">Summary</a>
9191
{% else %}
9292
<a class="dropdown-item" target="_blank" href="https://bioregistry.io/summary">
93-
Summary <i class="fa fa-external-link" aria-hidden="true"></i>
93+
Summary <i class="bi bi-link-45deg" aria-hidden="true"></i>
9494
</a>
9595
{% endif %}
9696
<a class="dropdown-item" target="_blank" href="{{ config.METAREGISTRY_REPOSITORY_PAGES }}/glossary/">
97-
Glossary <i class="fa fa-external-link" aria-hidden="true"></i>
97+
Glossary <i class="bi bi-link-45deg" aria-hidden="true"></i>
9898
</a>
9999
<a class="dropdown-item" target="_blank" href="{{ config.METAREGISTRY_REPOSITORY_PAGES }}/datamodel/">
100-
Data Model <i class="fa fa-external-link" aria-hidden="true"></i>
100+
Data Model <i class="bi bi-link-45deg" aria-hidden="true"></i>
101101
</a>
102102
<a class="dropdown-item" href="{{ url_for("metaregistry_ui.schema") }}">JSON and RDF Schemata</a>
103103
{% if config.METAREGISTRY_FIRST_PARTY %}
104104
<div class="dropdown-divider"></div>
105105
<h6 class="dropdown-header">Maintenance</h6>
106106
<a class="dropdown-item" href="{{ url_for("metaregistry_ui.sustainability") }}">Deployment and Sustainability</a>
107107
<a class="dropdown-item" target="_blank" href="{{ config.METAREGISTRY_REPOSITORY_PAGES }}/health/">
108-
Health Report <i class="fa fa-external-link" aria-hidden="true"></i>
108+
Health Report <i class="bi bi-link-45deg" aria-hidden="true"></i>
109109
</a>
110110
{% endif %}
111111
<div class="dropdown-divider"></div>
@@ -117,16 +117,16 @@ <h6 class="dropdown-header">Attribution</h6>
117117
<div class="dropdown-divider"></div>
118118
<h6 class="dropdown-header">Workshops</h6>
119119
<a class="dropdown-item" target="_blank" href="https://biopragmatics.github.io/workshops/wpci2021">
120-
WPCI 2021 <i class="fa fa-external-link" aria-hidden="true"></i>
120+
WPCI 2021 <i class="bi bi-link-45deg" aria-hidden="true"></i>
121121
</a>
122122
<a class="dropdown-item" target="_blank" href="https://biopragmatics.github.io/workshops/wpci2022">
123-
WPCI 2022 <i class="fa fa-external-link" aria-hidden="true"></i>
123+
WPCI 2022 <i class="bi bi-link-45deg" aria-hidden="true"></i>
124124
</a>
125125
<a class="dropdown-item" target="_blank" href="https://biopragmatics.github.io/workshops/wpci2023">
126-
WPCI 2023 <i class="fa fa-external-link" aria-hidden="true"></i>
126+
WPCI 2023 <i class="bi bi-link-45deg" aria-hidden="true"></i>
127127
</a>
128128
<a class="dropdown-item" target="_blank" href="https://biopragmatics.github.io/workshops/biocuration2025">
129-
Biocuration 2025 <i class="fa fa-external-link" aria-hidden="true"></i>
129+
Biocuration 2025 <i class="bi bi-link-45deg" aria-hidden="true"></i>
130130
</a>
131131
</div>
132132
</li>
@@ -138,21 +138,21 @@ <h6 class="dropdown-header">Workshops</h6>
138138
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
139139
<h6 class="dropdown-header">Project Info</h6>
140140
<a class="dropdown-item" target="_blank" href="{{ config.METAREGISTRY_REPOSITORY }}/blob/main/docs/CONTRIBUTING.md">
141-
Contribution Guidelines <i class="fa fa-external-link" aria-hidden="true"></i>
141+
Contribution Guidelines <i class="bi bi-link-45deg" aria-hidden="true"></i>
142142
</a>
143143
<a class="dropdown-item" target="_blank" href="{{ config.METAREGISTRY_REPOSITORY }}/blob/main/docs/CODE_OF_CONDUCT.md">
144-
Code of Conduct <i class="fa fa-external-link" aria-hidden="true"></i>
144+
Code of Conduct <i class="bi bi-link-45deg" aria-hidden="true"></i>
145145
</a>
146146
<a class="dropdown-item" target="_blank" href="{{ config.METAREGISTRY_REPOSITORY }}/blob/main/docs/GOVERNANCE.md">
147-
Project Governance <i class="fa fa-external-link" aria-hidden="true"></i>
147+
Project Governance <i class="bi bi-link-45deg" aria-hidden="true"></i>
148148
</a>
149149
<div class="dropdown-divider"></div>
150150
<h6 class="dropdown-header">Getting Started</h6>
151151
<a class="dropdown-item" target="_blank" href="{{ config.METAREGISTRY_REPOSITORY }}/issues/new?labels=New%2CPrefix&template=new-prefix.yml&title=Add+prefix+%5BX%5D">
152-
Request a Prefix <i class="fa fa-external-link" aria-hidden="true"></i>
152+
Request a Prefix <i class="bi bi-link-45deg" aria-hidden="true"></i>
153153
</a>
154154
<a class="dropdown-item" target="_blank" href="{{ config.METAREGISTRY_REPOSITORY_PAGES }}/curation/">
155-
Good First Contributions <i class="fa fa-external-link" aria-hidden="true"></i>
155+
Good First Contributions <i class="bi bi-link-45deg" aria-hidden="true"></i>
156156
</a>
157157
<!--<div class="dropdown-divider"></div>-->
158158
</div>

src/bioregistry/app/templates/collection.html

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<div class="card-header">
99
<div class="row align-items-center">
1010
<div class="col-8">
11-
<h5 style="margin: 0"><a href="{{ url_for("metaregistry_ui.collections") }}">Collections</a>
12-
<i class="fas fa-angle-right"></i> {{ entry.name }}</h5>
11+
<h5 style="margin: 0"><a href="{{ url_for('metaregistry_ui.collections') }}">Collections</a>
12+
<i class="bi bi-chevron-right"></i> {{ entry.name }}</h5>
1313
</div>
1414
<div class="col-4 text-right">
1515
<div class="d-flex flex-row-reverse">
@@ -22,8 +22,8 @@ <h5 style="margin: 0"><a href="{{ url_for("metaregistry_ui.collections") }}">Col
2222
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
2323
{% for label, key in formats %}
2424
<a class="dropdown-item"
25-
href="{{ fastapi_url_for("get_collection", identifier=identifier) }}?format={{ key }}">
26-
{{ label }} <i class="fas fa-download"></i>
25+
href="{{ fastapi_url_for('get_collection', identifier=identifier) }}?format={{ key }}">
26+
{{ label }} <i class="bi bi-download"></i>
2727
</a>
2828
{% endfor %}
2929
</div>
@@ -56,19 +56,17 @@ <h5 style="margin: 0"><a href="{{ url_for("metaregistry_ui.collections") }}">Col
5656
<dt>Maintainers</dt>
5757
{%- for maintainer in entry.maintainers %}
5858
<dd style="margin-bottom: 0;">
59-
<a href="{{ url_for("metaregistry_ui.contributor", orcid=maintainer.orcid) }}">
60-
{{ maintainer.name }}
61-
<i class="fab fa-orcid"></i>
59+
<a href="{{ url_for('metaregistry_ui.contributor', orcid=maintainer.orcid) }}">
60+
{{ maintainer.name }} {{ utils.orcid_img() }}
6261
</a>
6362
</dd>
6463
{%- endfor %}
6564
{%- endif %}
6665
<dt>Contributors</dt>
6766
{%- for author in entry.authors %}
6867
<dd style="margin-bottom: 0;">
69-
<a href="{{ url_for("metaregistry_ui.contributor", orcid=author.orcid) }}">
70-
{{ author.name }}
71-
<i class="fab fa-orcid"></i>
68+
<a href="{{ url_for('metaregistry_ui.contributor', orcid=author.orcid) }}">
69+
{{ author.name }} {{ utils.orcid_img() }}
7270
</a>
7371
</dd>
7472
{%- endfor %}
@@ -78,7 +76,7 @@ <h5 style="margin: 0"><a href="{{ url_for("metaregistry_ui.collections") }}">Col
7876
<a href="{{ organization.link }}">
7977
{{ organization.name }}
8078
{%- if organization.ror -%}
81-
<img style="max-height: 1em; margin-left: 0.3em" src="/static/ror.svg" alt="ror logo" />
79+
{{ utils.ror_img() }}
8280
{%- endif %}
8381
</a>
8482
</dd>
@@ -102,7 +100,7 @@ <h5 style="margin: 0"><a href="{{ url_for("metaregistry_ui.collections") }}">Col
102100
<span class="dropdown-menu">
103101
{%- for metaprefix, target_registry in manager.metaregistry.items() %}
104102
<a class="dropdown-item"
105-
href="{{ fastapi_url_for("get_collection_mapped", identifier=entry.identifier, metaprefix=metaprefix) }}">
103+
href="{{ fastapi_url_for('get_collection_mapped', identifier=entry.identifier, metaprefix=metaprefix) }}">
106104
{{ target_registry.get_short_name() }}
107105
</a>
108106
{%- endfor %}
@@ -125,7 +123,7 @@ <h5 style="margin: 0"><a href="{{ url_for("metaregistry_ui.collections") }}">Col
125123
<code>{{ prefix }}</code>
126124
</td>
127125
<td>
128-
<a href="{{ url_for("metaregistry_ui.resource", prefix=prefix) }}">
126+
<a href="{{ url_for('metaregistry_ui.resource', prefix=prefix) }}">
129127
{{ resources[prefix].get_name() }} {{ utils.render_resource_warnings(resources[prefix]) }}
130128
</a>
131129
</td>
@@ -154,7 +152,7 @@ <h5 style="margin: 0">Indirect Dependencies</h5>
154152
<code>{{ indirect_resource.prefix }}</code>
155153
</td>
156154
<td>
157-
<a href="{{ url_for("metaregistry_ui.resource", prefix=prefix) }}">
155+
<a href="{{ url_for('metaregistry_ui.resource', prefix=prefix) }}">
158156
{{ indirect_resource.get_name() }} {{ utils.render_resource_warnings(indirect_resource) }}
159157
</a>
160158
</td>

src/bioregistry/app/templates/collections.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{% for label, key in formats %}
2020
<a class="dropdown-item"
2121
href="{{ fastapi_url_for("get_collections") }}?format={{ key }}">
22-
{{ label }} <i class="fas fa-download"></i>
22+
{{ label }} <i class="bi bi-download"></i>
2323
</a>
2424
{% endfor %}
2525
</div>

src/bioregistry/app/templates/context.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="row align-items-center">
1010
<div class="col-8">
1111
<h5 style="margin: 0"><a href="{{ url_for("metaregistry_ui.contexts") }}">Contexts</a>
12-
<i class="fas fa-angle-right"></i> {{ entry.name }}</h5>
12+
<i class="bi bi-chevron-right"></i> {{ entry.name }}</h5>
1313
</div>
1414
<div class="col-4 text-right">
1515
<div class="dropdown">
@@ -22,7 +22,7 @@ <h5 style="margin: 0"><a href="{{ url_for("metaregistry_ui.contexts") }}">Contex
2222
{% for label, key in formats %}
2323
<a class="dropdown-item"
2424
href="{{ fastapi_url_for("get_context", identifier=identifier) }}?format={{ key }}">
25-
{{ label }} <i class="fas fa-download"></i>
25+
{{ label }} <i class="bi bi-download"></i>
2626
</a>
2727
{% endfor %}
2828
</div>
@@ -39,11 +39,11 @@ <h5 style="margin: 0"><a href="{{ url_for("metaregistry_ui.contexts") }}">Contex
3939
<dd>
4040
<a class="badge badge-pill badge-success"
4141
href="{{ config.METAREGISTRY_REPOSITORY }}/blob/main/exports/contexts/{{ identifier }}.context.jsonld">
42-
Download JSON LD <i class="fas fa-download"></i>
42+
Download JSON LD <i class="bi bi-download"></i>
4343
</a>
4444
<a class="badge badge-pill badge-success"
4545
href="{{ config.METAREGISTRY_REPOSITORY }}/blob/main/exports/contexts/{{ identifier }}.context.ttl">
46-
Download SHACL <i class="fas fa-download"></i>
46+
Download SHACL <i class="bi bi-download"></i>
4747
</a>
4848
</dd>
4949
<dt>Maintainers</dt>
@@ -52,8 +52,7 @@ <h5 style="margin: 0"><a href="{{ url_for("metaregistry_ui.contexts") }}">Contex
5252
{% for author in entry.maintainers %}
5353
<li>
5454
<a href="{{ url_for("metaregistry_ui.contributor", orcid=author.orcid) }}">
55-
{{ author.name }}
56-
<i class="fab fa-orcid"></i>
55+
{{ author.name }} {{ utils.orcid_img() }}
5756
</a>
5857
</li>
5958
{% endfor %}

src/bioregistry/app/templates/contexts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{% for label, key in formats %}
2020
<a class="dropdown-item"
2121
href="{{ fastapi_url_for("get_contexts") }}?format={{ key }}">
22-
{{ label }} <i class="fas fa-download"></i>
22+
{{ label }} <i class="bi bi-download"></i>
2323
</a>
2424
{% endfor %}
2525
</div>

src/bioregistry/app/templates/contributor.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="col-8">
2020
<h5 style="margin: 0">
2121
<a href="{{ url_for('metaregistry_ui.contributors') }}">Contributors</a>
22-
<i class="fas fa-angle-right"></i> {{ contributor.name }}
22+
<i class="bi bi-chevron-right"></i> {{ contributor.name }}
2323
</h5>
2424
</div>
2525
<div class="col-4 text-right">
@@ -33,7 +33,7 @@ <h5 style="margin: 0">
3333
{% for label, key in formats %}
3434
<a class="dropdown-item"
3535
href="{{ fastapi_url_for('get_contributor', orcid=contributor.orcid) }}?format={{ key }}">
36-
{{ label }} <i class="fas fa-download"></i>
36+
{{ label }} <i class="bi bi-download"></i>
3737
</a>
3838
{% endfor %}
3939
</div>
@@ -48,7 +48,7 @@ <h5 style="margin: 0">
4848
<dt>ORCID</dt>
4949
<dd>
5050
<a href="https://orcid.org/{{ contributor.orcid }}">
51-
{{ contributor.orcid }} <i class="fab fa-orcid"></i>
51+
{{ contributor.orcid }} {{ utils.orcid_img() }}
5252
</a>
5353
</dd>
5454
{#

src/bioregistry/app/templates/contributors.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{% for label, key in formats %}
4545
<a class="dropdown-item"
4646
href="{{ fastapi_url_for("get_contributors") }}?format={{ key }}">
47-
{{ label }} <i class="fas fa-download"></i>
47+
{{ label }} <i class="bi bi-download"></i>
4848
</a>
4949
{% endfor %}
5050
</div>

src/bioregistry/app/templates/highlights/relations.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% for k, v in ddd.items() %}
99
<dt class="col-3" style="text-align: right">{{ k }}
1010
{% if k not in manager.registry %}
11-
<i class="far fa-question-circle" style="color: red;"></i>
11+
<i class="bi bi-question-circle" style="color: red;"></i>
1212
{% endif %}
1313
</dt>
1414
<dd class="col-9">

0 commit comments

Comments
 (0)