This commit is contained in:
BoHung Chiu 2021-11-12 15:17:47 +08:00
parent d2e5fb267b
commit d2902bc797
3 changed files with 4 additions and 3 deletions

View File

@ -247,7 +247,7 @@ class AnnouncementsController < ApplicationController
)
filter_attr = (use_tag ? 'data-tags' : 'data-category')
extra_html = '
<script style=\"display:none\">
<script style="display:none">
if(typeof(wpexAnimsition) == "undefined"){
var wpexAnimsition = {
"loading":"1",
@ -631,7 +631,7 @@ class AnnouncementsController < ApplicationController
sub_anncs_text += "<tr><td><a href=\"#{page_url}/#{sub_annc.to_param}\" title=\"#{sub_annc.title}\" target=\"_blank\">#{sub_annc.title}</a></td>#{(display_sub_annc_date ? ('<td class="i-annc__postdate">'+sub_annc.display_postdate+'</td>') : '')}</tr>"
end
sub_anncs_text += "</tbody></table></div>"
sub_anncs_text += '<script style=\"display:none\">
sub_anncs_text += '<script style="display:none">
var DataTables_language = {};
DataTables_language["zh_tw"] = {"info":"本頁為第 _START_ 項至第 _END_ 項,共有 _TOTAL_ 項","infoEmpty":"本頁為第 0 至第 0 項,共有 0 項","infoFiltered":"(來自總共 _MAX_ 項中的符合項目)","infoPostFix":"","lengthMenu":"每頁顯示 _MENU_ 個項目","processing":"處理中...","search":"快速搜尋:","zeroRecords":"沒有找到符合的項目","paginate": {"first":"第一頁","previous":"上一頁","next":"下一頁","last":"最後一頁"},"decimal":"","thousands":","};
$(".sub_anncs_table").dataTable({"language":DataTables_language["'+I18n.locale.to_s+'"],"order":[],"orderClasses":false,"stripeClasses":["even","odd"],"pagingType":"simple"});

View File

@ -12,7 +12,6 @@
<div class="i-annc__content-wrap">
<div class="i-annc__meta">
<span class="i-annc__postdate-wrap" date-format="%Y-%m-%d">
<!-- -->
<span class="i-annc__postdate">{{postdate}}</span>
</span>
<span class="i-annc__category-wrap">
@ -29,4 +28,5 @@
<p class="i-annc__subtitle">{{subtitle}}</p>
</div>
</li>
</ul>
</div>

View File

@ -22,5 +22,6 @@
<p class="i-annc__subtitle">{{subtitle}}</p>
</div>
</li>
</ul>
</div>
{{pagination_goes_here}}