Changes for page 学校一覧

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

From version Icon 36.1 Icon
edited by Super Admin
on 2026/03/22 00:39
Change comment: There is no comment for this version
To version Icon 23.1 Icon
edited by Super Admin
on 2026/03/13 21:13
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -30,9 +30,9 @@
30 30  #else
31 31   ## 一般: 非表示校を除外
32 32   #if($sortParam == 'pref')
33 - #set($query = $services.query.xwql("from doc.object(SeitokaiCode.SchoolClass) as school where (school.hidden <> 1 or school.hidden is null) order by school.prefecture, school.schoolName"))
33 + #set($query = $services.query.xwql("from doc.object(SeitokaiCode.SchoolClass) as school where (school.hidden != 1 or school.hidden is null) order by school.prefecture, school.schoolName"))
34 34   #else
35 - #set($query = $services.query.xwql("from doc.object(SeitokaiCode.SchoolClass) as school where (school.hidden <> 1 or school.hidden is null) order by doc.date desc"))
35 + #set($query = $services.query.xwql("from doc.object(SeitokaiCode.SchoolClass) as school where (school.hidden != 1 or school.hidden is null) order by doc.date desc"))
36 36   #end
37 37  #end
38 38  #set($results = $query.execute())
... ... @@ -52,11 +52,6 @@
52 52   class="sort-toggle #if($sortParam == 'pref')active#end">
53 53   <svg class="ico ico-fixed-14" viewBox="0 0 24 24"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z"/><circle cx="12" cy="10" r="3"/></svg> 都道府県順
54 54   </a>
55 - #if($listViewerUser != 'XWiki.XWikiGuest')
56 - <a href="/bin/SeitokaiCode/CreateSchool" class="sort-toggle" style="margin-left:var(--sp-2); color:var(--primary); border-color:var(--primary);">
57 - <svg class="ico ico-fixed-14" viewBox="0 0 24 24"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg> 学校を追加
58 - </a>
59 - #end
60 60   </div>
61 61  </div>
62 62  {{/html}}
... ... @@ -84,15 +84,13 @@
84 84   #set($actCount = $schoolDoc.getObjects('SeitokaiCode.ActivityClass').size())
85 85   ## 投稿数をカウント(全活動の投稿合計)
86 86   #set($postCount = $schoolDoc.getObjects('SeitokaiCode.ActivityPostClass').size())
87 - ## 特色ある活動の数とタイトル収集
82 + ## 特色ある活動の数をカウント
88 88   #set($schoolActivities = $schoolDoc.getObjects('SeitokaiCode.ActivityClass'))
89 89   #set($featuredCount = 0)
90 - #set($featuredTitles = [])
91 91   #if($schoolActivities)
92 92   #foreach($sa in $schoolActivities)
93 93   #if($!sa.getValue('featured') == '1')
94 94   #set($featuredCount = $featuredCount + 1)
95 - #set($discard = $featuredTitles.add($!sa.getValue('title')))
96 96   #end
97 97   #end
98 98   #end
... ... @@ -122,12 +122,10 @@
122 122   #if($sCoed) ・ $!escapetool.xml($sCoed)#end
123 123   #if($sSystem && !$sSystem.isEmpty()) ・ #foreach($__sys in $sSystem)#if($foreach.count > 1)・#end$!escapetool.xml($__sys)#end#end
124 124   </div>
125 - ## 特色ある活動タイトル
118 + ## 特色ある活動バッジ
126 126   #if($featuredCount > 0)
127 - <div class="school-card-featured-titles">
128 - #foreach($ft in $featuredTitles)
129 - <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>
130 - #end
120 + <div class="school-card-featured-wrap">
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>
131 131   </div>
132 132   #end
133 133   <div class="school-card-stats">