Skip to content

Commit

Permalink
Merge pull request #1003 from okfn/develop
Browse files Browse the repository at this point in the history
[Deployment to PRD] Sitemap, language chooser, smal UI fixes
  • Loading branch information
pdelboca authored Nov 9, 2023
2 parents 301399a + 538cb8a commit b9a12be
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 19 deletions.
6 changes: 3 additions & 3 deletions foundation/organisation/templates/organisation/member.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</div>
<div class="content">
<h2 class="name">{{ person.name }}</h2>
<div class="font-mono">
<div class="font-mono block-txt">
<span class="position">{{ member.title }}</span>
{% if person.url %}
<a href="{{ person.url }}" class="flex items-center gap-2 mb-3">
Expand All @@ -25,9 +25,9 @@ <h2 class="name">{{ person.name }}</h2>
</a>
{% endif %}
{% if person.twitter %}
<a href="https://twitter.com/{{ person.twitter }}" class="flex items-center gap-2">
<a href="https://twitter.com/{{ person.twitter }}" class="flex items-center gap-2">
<img src="{% static '/images/icons/twitter.svg' %}">
{{ person.twitter }}
@{{ person.twitter }}
</a>
{% endif %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion static/css/styles.css

Large diffs are not rendered by default.

12 changes: 1 addition & 11 deletions templates/general.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,7 @@
</div>
</form>
</li>
<!-- <li class="main-nav__item -language" data-current-language="English">
<label class="icon">
<span></span>
</label>
<ul class="submenu -simple">
<li><a href="">English</a></li>
<li><a href="">Español</a></li>
<li><a href="">Português (Brasil)</a></li>
<li><a href="">Français</a></li>
</ul>
</li> -->
{% language_chooser %}
</ul>
</li>
</ul>
Expand Down
16 changes: 16 additions & 0 deletions templates/menu/language_chooser.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% load i18n menu_tags static %}

{% if languages|length > 1 %}
<li class="main-nav__item -has-submenu has-children">
<label>
<img src="{% static '/img/icons/header-globe.svg' %}" class="max-w-none" alt="Language">
</label>
<ul class="submenu">
<li>
<a href="{% page_language_url 'en' %}">English</a>
</li>
<li>
<a href="{% page_language_url 'es' %}">Español</a>
</li>
</ul>
{% endif %}
4 changes: 2 additions & 2 deletions templates/menu/menu_sitemap.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% load menu_tags %}
{% for child in children %}
<li>
<a
<a class="font-bold"
href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">
{{ child.get_menu_title }}
</a>
{% if child.children %}
<ul>
<ul class="submenu">
{% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
</ul>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions templates/sitemap.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
{% endblock %}

{% block body %}
<div class='row'>
<div class='main col-md-12'>
<div class='row site-map sect -tighten-3'>
<div class=''>
<ul>
{% show_menu 0 100 100 100 "menu/menu_sitemap.html" %}
</ul>
Expand Down
5 changes: 5 additions & 0 deletions templates/styles/components/_site-map.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.site-map {
.submenu {
@apply ml-5;
}
}
1 change: 1 addition & 0 deletions templates/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
@import './components/_card-person.css';
@import './components/_list.css';
@import './components/_page-closing.css';
@import './components/_site-map.css';
@import './components/_search.css';


Expand Down

0 comments on commit b9a12be

Please sign in to comment.