Changes for page 学校一覧

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

From version Icon 30.1 Icon
edited by Super Admin
on 2026/03/21 17:40
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,22 +30,15 @@
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())
39 39  
40 40  {{html clean="false"}}
41 -<div style="display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:var(--sp-3); margin-bottom:var(--sp-2);">
42 - <h1 class="home-section-title" style="margin-bottom:0;">登録されている学校</h1>
43 - #if($listViewerUser != 'XWiki.XWikiGuest')
44 - <a href="/bin/view/SeitokaiCode/CreateSchool" class="btn-primary" style="white-space:nowrap; text-decoration:none;">
45 - <svg class="ico" viewBox="0 0 24 24" style="vertical-align:middle; margin-right:4px;"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>新しく学校を追加する
46 - </a>
47 - #end
48 -</div>
41 +<h1 class="home-section-title">登録されている学校</h1>
49 49  <div class="sort-header">
50 50   <div class="school-count">
51 51   $results.size() 校が登録されています
... ... @@ -86,15 +86,13 @@
86 86   #set($actCount = $schoolDoc.getObjects('SeitokaiCode.ActivityClass').size())
87 87   ## 投稿数をカウント(全活動の投稿合計)
88 88   #set($postCount = $schoolDoc.getObjects('SeitokaiCode.ActivityPostClass').size())
89 - ## 特色ある活動の数とタイトル収集
82 + ## 特色ある活動の数をカウント
90 90   #set($schoolActivities = $schoolDoc.getObjects('SeitokaiCode.ActivityClass'))
91 91   #set($featuredCount = 0)
92 - #set($featuredTitles = [])
93 93   #if($schoolActivities)
94 94   #foreach($sa in $schoolActivities)
95 95   #if($!sa.getValue('featured') == '1')
96 96   #set($featuredCount = $featuredCount + 1)
97 - #set($discard = $featuredTitles.add($!sa.getValue('title')))
98 98   #end
99 99   #end
100 100   #end
... ... @@ -124,12 +124,10 @@
124 124   #if($sCoed) ・ $!escapetool.xml($sCoed)#end
125 125   #if($sSystem && !$sSystem.isEmpty()) ・ #foreach($__sys in $sSystem)#if($foreach.count > 1)・#end$!escapetool.xml($__sys)#end#end
126 126   </div>
127 - ## 特色ある活動タイトル
118 + ## 特色ある活動バッジ
128 128   #if($featuredCount > 0)
129 - <div class="school-card-featured-titles">
130 - #foreach($ft in $featuredTitles)
131 - <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>
132 - #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>
133 133   </div>
134 134   #end
135 135   <div class="school-card-stats">