Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: greenpeace/planet4-master-theme
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8d38edc17f949e7fb7e0e99eef08922e2899c630
Choose a base ref
..
head repository: greenpeace/planet4-master-theme
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0a1d1a66c2b43cff04b1e9cd8c06dc58f6b3248a
Choose a head ref
Showing with 5 additions and 3 deletions.
  1. +5 −3 templates/search.twig
8 changes: 5 additions & 3 deletions templates/search.twig
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@
<div id="item-modal-issue" class="collapse show" role="tabpanel">
<ul class="list-unstyled">
{% for category in categories %}
{% if ( category.results >= 0 ) %}
{% if ( category.results > 0 ) %}
<li>
<label class="custom-control">
<input
@@ -113,7 +113,7 @@
<div id="item-modal-category" class="collapse show" role="tabpanel">
<ul class="list-unstyled">
{% for page_type in page_types %}
{% if ( page_type.results >= 0 ) %}
{% if ( page_type.results > 0 ) %}
<li>
<label class="custom-control">
<input
@@ -142,7 +142,7 @@
<div id="item-modal-content" class="collapse show" role="tabpanel">
<ul class="list-unstyled">
{% for id, content_type in content_types %}
{% if ( content_type.results >= 0 ) %}
{% if ( content_type.results > 0 ) %}
<li>
<label class="custom-control">
<input
@@ -174,6 +174,7 @@
<div id="item-modal-campaign" class="collapse show" role="tabpanel">
<ul class="list-unstyled">
{% for tag in tags %}
{% if ( tag.results > 0 ) %}
<li>
<label class="custom-control">
<input
@@ -188,6 +189,7 @@
<span class="custom-control-description">{{ tag.name|e('wp_kses_post')|raw }} ({{ tag.results }})</span>
</label>
</li>
{% endif %}
{% endfor %}
</ul>
</div>