Changes for page 学校一覧
Last modified by Super Admin on 2026/03/23 10:15
From version
27.1
edited by Super Admin
on 2026/03/18 03:55
on 2026/03/18 03:55
Change comment:
There is no comment for this version
To version
37.1
edited by Super Admin
on 2026/03/23 10:15
on 2026/03/23 10:15
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -36,6 +36,17 @@ 36 36 #end 37 37 #end 38 38 #set($results = $query.execute()) 39 +## サンプル高等学校を常に先頭に表示 40 +#set($samplePageName = 'Schools.D100000000001.WebHome') 41 +#set($sortedResults = []) 42 +#foreach($r in $results) 43 + #if($r == $samplePageName) 44 + #set($discard = $sortedResults.add(0, $r)) 45 + #else 46 + #set($discard = $sortedResults.add($r)) 47 + #end 48 +#end 49 +#set($results = $sortedResults) 39 39 40 40 {{html clean="false"}} 41 41 <h1 class="home-section-title">登録されている学校</h1> ... ... @@ -52,6 +52,11 @@ 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> 66 + #if($listViewerUser != 'XWiki.XWikiGuest') 67 + <a href="/bin/SeitokaiCode/CreateSchool" class="sort-toggle" style="margin-left:var(--sp-2); color:var(--primary); border-color:var(--primary);"> 68 + <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> 学校を追加 69 + </a> 70 + #end 55 55 </div> 56 56 </div> 57 57 {{/html}} ... ... @@ -117,11 +117,8 @@ 117 117 #if($sCoed) ・ $!escapetool.xml($sCoed)#end 118 118 #if($sSystem && !$sSystem.isEmpty()) ・ #foreach($__sys in $sSystem)#if($foreach.count > 1)・#end$!escapetool.xml($__sys)#end#end 119 119 </div> 120 - ## 特色ある活動 バッジ136 + ## 特色ある活動タイトル 121 121 #if($featuredCount > 0) 122 - <div class="school-card-featured-wrap"> 123 - <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> 124 - </div> 125 125 <div class="school-card-featured-titles"> 126 126 #foreach($ft in $featuredTitles) 127 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>