/
githubmirror
/
Leaflet
Обзор
Документация
Войти
/
githubmirror
/
Leaflet
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/_includes/plugin_category_table.html
43 строки
1 KB
Florian Bischof
Add compatibility columns and sorting functionality to plugin tables (#9823)
10 авг 2025, 14:27
Не верифицирован
10 авг 2025, 14:27
f289ff1
Код
Авторство
О чём код?
{% assign filteredplugins = site.plugins | where: "category", include.category %} <table class="plugins"> <tr> <th>Plugin</th> <th>Description</th> <th title="Compatible with V1" class="compatible">V1</th> <th title="Compatible with V2" class="compatible">V2</th> <th>Demo</th> <th>Maintainer</th> </tr> {% for plugin in filteredplugins %} <tr> <td><a class="plugin-repo-url" href="{{ plugin.repo }}">{{ plugin.name }}</a></td> <td> {{ plugin.content }} <div class="repo-data"></div> </td> <td class="compatible"> {% if plugin.compatible-v1 %} <span title="Compatible with V1">✔️</span> {% endif %} </td> <td class="compatible"> {% if plugin.compatible-v2 %} <span title="Compatible with V2">✔️</span> {% endif %} </td> <td> {% if plugin.demo %} <a href="{{ plugin.demo }}">Demo</a> {% endif %} </td> <td> {% if plugin.author-url %} <a href="{{ plugin.author-url }}">{{ plugin.author }}</a> {% else %} {{ plugin.author }} {% endif %} </td> </tr> {% endfor %} </table>