Skip to content

Commit

Permalink
Updated header nav
Browse files Browse the repository at this point in the history
Removed Contact link and superfluous language link
  • Loading branch information
jvanulde committed Jun 9, 2022
1 parent 7a03619 commit 9883cff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Binary file modified pygeoapi/static/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions pygeoapi/templates/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,15 @@
<header class="sticky row">
<div class="col-sm-12 col-md-10 col-md-offset-1">
<a href="{{ config['server']['url'] }}" class="logo" role="button">
<img src="{{ config['server']['url'] }}/static/img/logo.png" title="{{ config['metadata']['identification']['title'] }}" style="height:40px;vertical-align: middle;" /></a>
<img src="{{ config['server']['url'] }}/static/img/logo.png" title="{{ config['metadata']['identification']['title'] }}" style="height:30px;vertical-align: middle;" /></a>
<!--
Add additional menu items here
<a href="https://pygeoapi.io" role="button" class="button">About</a>
-->
<div style="float: right;">
<a href="mailto:{{ config['metadata']['contact']['email'] }}" role="button" class="button">Contact</a>
{% if config['server']['languages'] %}
<span style="border-left:solid 1px #000">&nbsp;</span>
{% for lang in config['server']['languages'] %}
<a href="?lang={{lang}}" role="button" class="button" style="float:right;text-transform: uppercase;">{{lang.split('-')[0]}}</a>
<a href="?lang={{lang}}" role="button" class="button" {% if lang.split('-')[0] in (locale|string).split('_')[0] %}style="display:none;"{% endif %}>{% if lang.split('-')[0] == "en" %} English {% endif %}{% if "fr" in lang.split('-') %} Français {% endif %}</a>
{% endfor %}
{% endif %}
</div>
Expand Down

0 comments on commit 9883cff

Please sign in to comment.