|
3 | 3 | </div> |
4 | 4 | <div class="container-fluid"> |
5 | 5 | <p><a href="#full-screen" aria-controls="full-screen" class="overlay-lnk btn btn-primary btn-block" role="button">{{ pageList[locale].definitionButtonText }}</a></p> |
| 6 | + |
| 7 | + <!-- CSV Download Button --> |
| 8 | + <div class="mrgn-bttm-md"> |
| 9 | + <a href="{{ pathPrefix }}/docs/pages-{{ locale }}.csv" download class="btn btn-default"> |
| 10 | + <i class="fas fa-download" aria-hidden="true"></i> |
| 11 | + {% if locale === "en" %} |
| 12 | + Download CSV Export |
| 13 | + {% else %} |
| 14 | + Télécharger l'export CSV |
| 15 | + {% endif %} |
| 16 | + </a> |
| 17 | + </div> |
6 | 18 | <section id="full-screen" class="wb-overlay modal-content overlay-def wb-popup-full"> |
7 | 19 | <header class="modal-header"> |
8 | 20 | <h2>{{ pageList[locale].definitionButtonText }}</h2> |
|
73 | 85 | </li> |
74 | 86 | <li class="checkbox"> |
75 | 87 | <label> |
76 | | - <input type="checkbox" name="columns" class="wb-tagfilter-ctrl" value="col_6" checked> {% if locale === "en" %}Description present?{% else %}Description présente ?{% endif %} |
| 88 | + <input type="checkbox" name="columns" class="wb-tagfilter-ctrl" value="col_6" checked> {% if locale === "en" %}Layout{% else %}Mise en page{% endif %} |
| 89 | + </label> |
| 90 | + </li> |
| 91 | + <li class="checkbox"> |
| 92 | + <label> |
| 93 | + <input type="checkbox" name="columns" class="wb-tagfilter-ctrl" value="col_7" checked> {% if locale === "en" %}Date Modified{% else %}Date de modification{% endif %} |
| 94 | + </label> |
| 95 | + </li> |
| 96 | + <li class="checkbox"> |
| 97 | + <label> |
| 98 | + <input type="checkbox" name="columns" class="wb-tagfilter-ctrl" value="col_8" checked> {% if locale === "en" %}Date Created{% else %}Date de création{% endif %} |
77 | 99 | </label> |
78 | 100 | </li> |
79 | 101 | <li class="checkbox"> |
80 | 102 | <label> |
81 | | - <input type="checkbox" name="columns" class="wb-tagfilter-ctrl" value="col_7" checked> {% if locale === "en" %}Link to file{% else %}Lien vers le fichier{% endif %} |
| 103 | + <input type="checkbox" name="columns" class="wb-tagfilter-ctrl" value="col_9" checked> {% if locale === "en" %}Content Type{% else %}Type de contenu{% endif %} |
| 104 | + </label> |
| 105 | + </li> |
| 106 | + <li class="checkbox"> |
| 107 | + <label> |
| 108 | + <input type="checkbox" name="columns" class="wb-tagfilter-ctrl" value="col_10" checked> {% if locale === "en" %}Link to file{% else %}Lien vers le fichier{% endif %} |
82 | 109 | </label> |
83 | 110 | </li> |
84 | 111 | <li class="checkbox"> |
|
95 | 122 | </fieldset> |
96 | 123 | </div> |
97 | 124 |
|
98 | | - <table class="wb-tagfilter-items table table-bordered"> |
| 125 | + <table class="wb-tagfilter-items table table-bordered wb-tables table-hover filterEmphasis provisional"> |
99 | 126 | <thead> |
100 | 127 | <tr> |
101 | 128 | <th data-wb-tags="col_1">{% if locale === "en" %}Title{% else %}Titre{% endif %}</th> |
102 | 129 | <th data-wb-tags="col_2">{% if locale === "en" %}Other language link{% else %}Lien vers d'autres langues{% endif %}</th> |
103 | 130 | <th data-wb-tags="col_3">{{ pageList[locale].tagsText }}</th> |
104 | 131 | <th data-wb-tags="col_4">{{ pageList[locale].subjectsText }}</th> |
105 | 132 | <th data-wb-tags="col_5">{% if locale === "en" %}Role{% else %}Rôle{% endif %}</th> |
106 | | - <th data-wb-tags="col_7">{% if locale === "en" %}Link to file{% else %}Lien vers le fichier{% endif %}</th> |
| 133 | + <th data-wb-tags="col_6">{% if locale === "en" %}Layout{% else %}Mise en page{% endif %}</th> |
| 134 | + <th data-wb-tags="col_7">{% if locale === "en" %}Date Modified{% else %}Date de modification{% endif %}</th> |
| 135 | + <th data-wb-tags="col_8">{% if locale === "en" %}Date Created{% else %}Date de création{% endif %}</th> |
| 136 | + <th data-wb-tags="col_9">{% if locale === "en" %}Content Type{% else %}Type de contenu{% endif %}</th> |
| 137 | + <th data-wb-tags="col_10">{% if locale === "en" %}Link to file{% else %}Lien vers le fichier{% endif %}</th> |
107 | 138 | </tr> |
108 | 139 | </thead> |
109 | 140 | <tbody> |
|
117 | 148 | {% else %} |
118 | 149 | {% set missingToggle = "Version anglais manquante" %} |
119 | 150 | {% endif %} |
| 151 | + {% if '/main/' in entry.inputPath %} |
| 152 | + {% if locale === "en" %} |
| 153 | + {% set contentType = "Landing Page" %} |
| 154 | + {% else %} |
| 155 | + {% set contentType = "Page d'atterrissage" %} |
| 156 | + {% endif %} |
| 157 | + {% elif '/pages/' in entry.inputPath %} |
| 158 | + {% if locale === "en" %} |
| 159 | + {% set contentType = "Content Page" %} |
| 160 | + {% else %} |
| 161 | + {% set contentType = "Page de contenu" %} |
| 162 | + {% endif %} |
| 163 | + {% elif '/links/' in entry.inputPath %} |
| 164 | + {% if locale === "en" %} |
| 165 | + {% set contentType = "Link" %} |
| 166 | + {% else %} |
| 167 | + {% set contentType = "Lien" %} |
| 168 | + {% endif %} |
| 169 | + {% else %} |
| 170 | + {% if locale === "en" %} |
| 171 | + {% set contentType = "Page" %} |
| 172 | + {% else %} |
| 173 | + {% set contentType = "Page" %} |
| 174 | + {% endif %} |
| 175 | + {% endif %} |
120 | 176 | {% if entry.data.locale == locale %} |
121 | 177 | {% if entry.data.redirect %} |
| 178 | + {% elif entry.inputPath.endsWith('.csv.njk') %} |
122 | 179 | {% else %} |
123 | 180 | <tr{% for items in isLanding[6] %}{% if items === "m" %} class="success" data-wb-tags="isLanding"{% else %} data-wb-tags="isPage"{% endif %}{% endfor %}> |
124 | 181 | <td data-wb-tags="col_1"> |
|
144 | 201 | {% endfor %} |
145 | 202 | {% endif %} |
146 | 203 | </td> |
147 | | - <td data-wb-tags="col_7"><code><a href="https://github.com/gc-da11yn/gc-da11yn.github.io/tree/{{ branch }}{{ newPath }}">{{ newPath }}</a></code></td> |
| 204 | + <td data-wb-tags="col_6">{{ entry.data.layout or "" }}</td> |
| 205 | + <td data-wb-tags="col_7">{{ entry.date | postDate if entry.date else "" }}</td> |
| 206 | + <td data-wb-tags="col_8">{{ entry.data.gitCreated | postDate if entry.data.gitCreated else "" }}</td> |
| 207 | + <td data-wb-tags="col_9">{{ contentType }}</td> |
| 208 | + <td data-wb-tags="col_10"><code><a href="https://github.com/gc-da11yn/gc-da11yn.github.io/tree/{{ branch }}{{ newPath }}">{{ newPath }}</a></code></td> |
148 | 209 | </tr> |
149 | 210 | {% endif %} |
150 | 211 | {% endif %} |
|
0 commit comments