Skip to content

Commit 2018bc2

Browse files
committed
fix: update table class for consistent styling and remove unnecessary locale checks
1 parent 685cf41 commit 2018bc2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/_includes/partials/pageListTable.njk

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
</fieldset>
119119
</div>
120120

121-
<table class="wb-tagfilter-items table table-bordered wb-tables table-hover filterEmphasis provisional">
121+
<table class="wb-tagfilter-items table table-bordered wb-tables table-striped table-hover filterEmphasis provisional">
122122
<thead>
123123
<tr>
124124
<th data-wb-tags="col_1">{% if locale === "en" %}Title{% else %}Titre{% endif %}</th>
@@ -138,16 +138,11 @@
138138
{% set otherLocale = "fr" if locale === "en" else "en" %}
139139
{% set toggleURL = entry.inputPath | replace("\./src/" + locale + "/", "/" + otherLocale + "/") %}
140140
{% set isLanding = entry.inputPath | replace("/", ",") %}
141-
{% if locale === "en" %}
142-
{% set missingToggle = "Missing french version" %}
143-
{% else %}
144-
{% set missingToggle = "Version anglais manquante" %}
145-
{% endif %}
146141
{% if entry.data.locale == locale %}
147142
{% if entry.data.redirect %}
148143
{% elif entry.inputPath.endsWith('.csv.njk') %}
149144
{% else %}
150-
<tr{% for items in isLanding[6] %}{% if items === "m" %} class="success" data-wb-tags="isLanding"{% else %} data-wb-tags="isPage"{% endif %}{% endfor %}>
145+
<tr{% for items in isLanding[6] %}{% if items === "m" %} data-wb-tags="isLanding"{% else %} data-wb-tags="isPage"{% endif %}{% endfor %}>
151146
<td data-wb-tags="col_1">
152147
<a href="{{ entry.url }}">{{ entry.data.title | safe }}</a></td>
153148
<td data-wb-tags="col_3">

0 commit comments

Comments
 (0)