Changes for page 学校一覧

Last modified by Super Admin on 2026/03/23 10:15

From version Icon 24.1 Icon
edited by Super Admin
on 2026/03/14 15:45
Change comment: There is no comment for this version
To version Icon 26.1 Icon
edited by XWikiGuest
on 2026/03/18 03:51
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.superadmin
1 +XWiki.XWikiGuest
Content
... ... @@ -79,13 +79,15 @@
79 79   #set($actCount = $schoolDoc.getObjects('SeitokaiCode.ActivityClass').size())
80 80   ## 投稿数をカウント(全活動の投稿合計)
81 81   #set($postCount = $schoolDoc.getObjects('SeitokaiCode.ActivityPostClass').size())
82 - ## 特色ある活動の数をカウン
82 + ## 特色ある活動の数とタイルを収集
83 83   #set($schoolActivities = $schoolDoc.getObjects('SeitokaiCode.ActivityClass'))
84 84   #set($featuredCount = 0)
85 + #set($featuredTitles = [])
85 85   #if($schoolActivities)
86 86   #foreach($sa in $schoolActivities)
87 87   #if($!sa.getValue('featured') == '1')
88 88   #set($featuredCount = $featuredCount + 1)
90 + #set($discard = $featuredTitles.add($!sa.getValue('title')))
89 89   #end
90 90   #end
91 91   #end
... ... @@ -120,6 +120,11 @@
120 120   <div class="school-card-featured-wrap">
121 121   <span class="badge-featured"><svg class="ico ico-fixed-14" viewBox="0 0 24 24" fill="currentColor" stroke="none"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg> 特色ある活動 ${featuredCount}件</span>
122 122   </div>
125 + <div class="school-card-featured-titles">
126 + #foreach($ft in $featuredTitles)
127 + <span class="featured-title-item"><svg class="ico ico-fixed-12" viewBox="0 0 24 24" fill="currentColor" stroke="none"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg> $!escapetool.xml($ft)</span>
128 + #end
129 + </div>
123 123   #end
124 124   <div class="school-card-stats">
125 125   <span><svg class="ico ico-fixed-14" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></svg> 活動 <span class="num">$actCount</span>件</span>