Changes for page 生徒会Wiki

Last modified by Super Admin on 2026/04/01 16:27

From version Icon 21.1 Icon
edited by XWikiGuest
on 2026/03/08 00:02
Change comment: There is no comment for this version
To version Icon 2.1 Icon
edited by Super Admin
on 2026/03/05 23:24
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.XWikiGuest
1 +XWiki.superadmin
Content
... ... @@ -1,86 +1,43 @@
1 1  {{velocity}}
2 -## ユーザーごとに異なるコンテンツ(ゲストCTA等)があるためキャッシュ無効化
3 -#set($discard = $xcontext.put('rendering.cache.disabled', true))
4 4  ## メンテナンスバナー
5 5  {{include reference="SeitokaiCode.MaintenanceBannerInclude" /}}
6 6  
7 7  {{html clean="false"}}
8 8  <div class="home-hero">
9 - <span class="home-hero-icon"><svg class="ico ico-hero" viewBox="0 0 24 24"><path d="M2 20h20"/><path d="M5 20V10l7-5 7 5v10"/><path d="M9 20v-5h6v5"/></svg></span>
10 - <h1>生徒会Wiki</h1>
7 + <h1><svg class="ico" style="width:1em;height:1em;vertical-align:-0.125em;" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 20h20"/><path d="M5 20V10l7-5 7 5v10"/><path d="M9 20v-5h6v5"/></svg> 生徒会Wiki</h1>
11 11   <p>全国の学校の生徒会活動を共有するプラットフォーム</p>
12 12  </div>
13 13  
14 -#if($xcontext.user == "XWiki.XWikiGuest")
15 -<div class="home-guest-cta">
16 - <div class="home-guest-cta-inner">
17 - <div class="home-guest-cta-content">
18 - <h2 class="home-guest-cta-title">アカウントを作成して、全国の生徒会と情報を共有しましょう</h2>
19 - <p class="home-guest-cta-desc">ログインすると、自分の学校ページの作成・編集や活動報告の投稿ができるようになります。</p>
20 - </div>
21 - <div class="home-guest-cta-buttons">
22 - <a href="$xwiki.getURL('XWiki.XWikiLogin', 'login', 'loginLink=1')" class="btn-guest-register">
23 - <svg class="login-icon" viewBox="0 0 24 24"><path d="M16 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2"/><circle cx="8.5" cy="7" r="4"/><line x1="20" y1="11" x2="20" y2="17"/><line x1="17" y1="14" x2="23" y2="14"/></svg>
24 - アカウントを作成
25 - </a>
26 - <a href="$xwiki.getURL('XWiki.XWikiLogin', 'login')" class="btn-guest-login">
27 - <svg class="login-icon" viewBox="0 0 24 24"><path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
28 - ログイン
29 - </a>
30 - </div>
31 - </div>
32 -</div>
33 -#end
34 -
35 35  <div class="home-cards">
36 - <a href="$xwiki.getURL('Schools.WebHome', 'view')" class="home-card">
37 - <div class="home-card-icon"><svg class="ico" viewBox="0 0 24 24"><path d="M4 19.5A2.5 2.5 0 016.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 014 19.5v-15A2.5 2.5 0 016.5 2z"/></svg></div>
12 + <a href="/xwiki/bin/view/Schools/" class="home-card">
13 + <div class="home-card-icon"><svg class="ico" style="width:1em;height:1em;vertical-align:-0.125em;" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19.5A2.5 2.5 0 016.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 014 19.5v-15A2.5 2.5 0 016.5 2z"/></svg></div>
38 38   <div class="home-card-title">学校ページを見る</div>
39 39   <div class="home-card-desc">登録されている学校の活動を閲覧</div>
40 40   </a>
41 41  
42 - <a href="$xwiki.getURL('SeitokaiCode.CreateSchool', 'view')" class="home-card">
43 - <div class="home-card-icon"><svg class="ico" viewBox="0 0 24 24"><path d="M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"/></svg></div>
18 + <a href="/xwiki/bin/view/SeitokaiCode/CreateSchool" class="home-card">
19 + <div class="home-card-icon"><svg class="ico" style="width:1em;height:1em;vertical-align:-0.125em;" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"/></svg></div>
44 44   <div class="home-card-title">学校ページを作成</div>
45 45   <div class="home-card-desc">あなたの学校のページを新規作成</div>
46 46   </a>
47 47  
48 - <a href="$xwiki.getURL('SeitokaiCode.Guidelines', 'view')" class="home-card">
49 - <div class="home-card-icon"><svg class="ico" 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></div>
24 + <a href="/xwiki/bin/view/SeitokaiCode/Guidelines" class="home-card">
25 + <div class="home-card-icon"><svg class="ico" style="width:1em;height:1em;vertical-align:-0.125em;" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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></div>
50 50   <div class="home-card-title">ガイドライン</div>
51 51   <div class="home-card-desc">編集ルール・利用規約を確認</div>
52 52   </a>
53 53  
54 54   #if($xcontext.user != "XWiki.XWikiGuest")
55 - <a href="$xwiki.getURL('SeitokaiCode.MyPage', 'view')" class="home-card">
56 - <div class="home-card-icon"><svg class="ico" viewBox="0 0 24 24"><path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"/><circle cx="12" cy="7" r="4"/></svg></div>
31 + <a href="/xwiki/bin/view/SeitokaiCode/MyPage" class="home-card">
32 + <div class="home-card-icon"><svg class="ico" style="width:1em;height:1em;vertical-align:-0.125em;" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"/><circle cx="12" cy="7" r="4"/></svg></div>
57 57   <div class="home-card-title">マイページ</div>
58 58   <div class="home-card-desc">プロフィール・投稿履歴を確認</div>
59 59   </a>
60 60   #end
61 61  </div>
62 -
63 -<div class="home-recent-section">
64 - <h2 class="home-section-title">最近の更新</h2>
65 - #set($recentDocs = $xwiki.searchDocuments("where (doc.fullName like 'Main.%' or doc.fullName like 'Schools.%') and doc.fullName not like '%.WebPreferences' order by doc.date desc", 10))
66 - #if($recentDocs.size() > 0)
67 - <ul class="recent-changes-list">
68 - #foreach($docName in $recentDocs)
69 - #set($rdoc = $xwiki.getDocument($docName))
70 - <li class="recent-changes-item">
71 - <span class="recent-changes-icon"></span>
72 - <span class="recent-changes-title"><a href="$rdoc.getURL('view')">$!escapetool.xml($rdoc.displayTitle)</a> が更新されました</span>
73 - <span class="recent-changes-meta">$xwiki.formatDate($rdoc.date, 'yyyy/MM/dd HH:mm')</span>
74 - </li>
75 - #end
76 - </ul>
77 - #else
78 - <div class="home-empty-state">
79 - <svg class="home-empty-icon" 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"/></svg>
80 - <p>まだ更新はありません。</p>
81 - <p class="home-empty-sub">学校ページを作成して、活動を共有しましょう!</p>
82 - </div>
83 - #end
84 -</div>
85 85  {{/html}}
39 +
40 += <svg class="ico" style="width:1.1em;height:1.1em;vertical-align:-0.15em;" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 11l18-5v12L3 13v-2z"/><path d="M11.6 16.8a3 3 0 11-5.8-1.6"/></svg> 最近の更新 =
41 +
42 +{{activity /}}
86 86  {{/velocity}}