add modules

This commit is contained in:
junyi 2026-06-18 14:38:19 +08:00
parent 2a95a09f59
commit 8751e55556
4 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<table class="table table-hover table-striped projects-index competitions-index dt-responsive nowrap">
<caption><h3>{{widget-title}}</h3></caption>
<thead>
<tr>
<th class="col-md-1">{{year}}</th>
<th class="col-md-2">{{competition_name}}</th>
<th class="col-md-2">{{award_name}}</th>
<th class="col-md-1">{{award_place}}</th>
<th class="col-md-2">{{awarding_unit}}</th>
<th class="col-md-2 min-tablet-l">{{competition_date}}</th>
<th class="col-md-1 min-tablet-l">{{note}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="competitions">
<tr>
<td>{{year}}</td>
<td><a href="{{link_to_show}}">{{competition_name}}</a></td>
<td>{{award_name}}</td>
<td>{{award_place}}</td>
<td>{{awarding_unit}}</td>
<td date-format="%Y-%m-%d">{{competition_date}}</td>
<td>{{note}}</td>
</tr>
</tbody>
</table>
{{pagination_goes_here}}
<script>
$('table.competitions-index').DataTable({
searching: false,
paging: false,
ordering: false,
info: false
});
</script>

View File

@ -0,0 +1,12 @@
{
"frontend": [
{
"filename" : "index",
"name" : {
"zh_tw" : "1. 列表",
"en" : "1. List"
},
"thumbnail" : "thumb.png"
}
]
}

View File

@ -0,0 +1,8 @@
<table class="table table-striped plugin-show-table">
<tbody data-list="plugin_datas" data-level="0">
<tr>
<th class="{{title_class}}">{{title}}</th>
<td class="{{value_class}}">{{value}}</td>
</tr>
</tbody>
</table>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB