blob: 45ed898d16aa87b2fb9a4b82273ec5db9ed2fa34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
|
{% load static %}
{% load i18n %}
<div class="left-sidebar{% if user.is_authenticated %} left-sidebar-authenticated{% endif %}">
{% if not user.is_authenticated %}
{% for message in messages %}
{% if 'LoginError' in message.tags %}
<div id="login-error">
<div class="messageBox">{{ message.message }}</div>
</div>
{% endif %}
{% endfor %}
<div id="login-area">
<form method="post" action="{% url 'auth:login' %}" id="login-form">
{% csrf_token %}
<input type="text"
id="username"
name="username"
placeholder="{% translate "Username" %}"
autocomplete="off"
value="{{ request.GET.username }}" />
<input type="password"
id="password"
name="password"
placeholder="{% translate "Password" %}"
autocomplete="off" />
<input type="hidden"
name="next"
value="{% if request.GET.next %} {{ request.GET.next }} {% else %} {{ request.path }} {% endif %}" />
<input type="submit" value="" />
</form>
<button id="register-now-button"></button>
<button id="forgot-password-button"></button>
</div>
{% else %}
<div id="user-area">
<h2 class="user-title">
{% blocktranslate with username=user.username %}Hello, {{ username }}{% endblocktranslate %}
</h2>
<div class="user-items-container">
<div class="user-item">
<img src="{% static 'images/core/icons/journals.png' %}" width="20" height="20"
alt="Journals Icon" />
<a href="{% url "services:journals:journals" %}">{% translate "Journals" %}</a>
</div>
<div class="user-item">
<img src="{% static 'images/core/icons/mypage.png' %}" width="20" height="20" alt="My Page Icon" />
<a href="#mypage">{% translate "My Page" %}</a>
</div>
<div class="user-item">
<img src="{% static 'images/core/icons/messages.png' %}" width="20" height="20"
alt="Letters Icon" />
<a href="{% url 'core:letters:inbox' %}">{% translate "Letters" %}{% if unread_letter_count %} (<strong>{{ unread_letter_count }}</strong>){% endif %}</a>
</div>
<div class="user-item">
<img src="{% static 'images/core/icons/preferences.png' %}" width="20" height="20"
alt="Site Preferences Icon" />
<a href="#preferences">{% translate "Site Preferences" %}</a>
</div>
<div class="user-item">
<img src="{% static 'images/core/icons/logout.png' %}" width="20" height="20" alt="Logout Icon" />
<a href="{% url 'auth:logout' %}">{% translate "Logout" %}</a>
</div>
</div>
</div>
{% endif %}
<div class="navigation-links" {% if user.is_authenticated %}style="margin-top: 42px"{% endif %}>
<div class="navigation-title-container">
<h1 class="navigation-title">{% translate "Navigation" %}</h1>
</div>
<div class="navigation-items-container">
<div class="navigation-item">
<img src="{% static 'images/core/icons/home.png' %}" width="20" height="20" alt="Home Icon" />
<a href="{% url 'core:home' %}">{% translate "Home" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/icons/journalofrandomthoughts.png' %}" width="20" height="20"
alt="Journal of Random Thoughts Icon" />
<a href="{% url 'core:journal_default' %}">{% translate "Journal of Random Thoughts" %}</a>
</div>
<div class="navigation-item weblog-sidebar-container">
<img src="{% static 'images/core/icons/weblog.gif' %}" width="20" height="20" alt="Weblog Icon" />
<a href="{% url 'weblog:home' %}">{% translate "Weblog" %}</a>
<div class="weblog-sidebar-hovered">
<div class="hovercard-item">
<img src="{% static 'images/core/icons/weblog_internal.png' %}" width="20" height="20"
alt="Weblog Internal Icon" />
<a href="{% url 'weblog:home' %}">{% translate "Weblog" %}</a>
</div>
<div class="hovercard-item">
<img src="{% static 'images/core/icons/categories.gif' %}" width="20" height="20"
alt="Categories Icon" />
<a href="{% url 'weblog:categories' %}">{% translate "Categories" %}</a>
</div>
<div class="hovercard-item">
<img src="{% static 'images/core/icons/tags.gif' %}" width="20" height="20"
alt="Tags Icon" />
<a href="{% url 'weblog:tags' %}">{% translate "Tags" %}</a>
</div>
<div class="hovercard-item">
<img src="{% static 'images/core/icons/archives.gif' %}" width="20" height="20"
alt="Archives Icon" />
<a href="{% url 'weblog:archives' %}">{% translate "Archives" %}</a>
</div>
</div>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/icons/shrines.png' %}" width="20" height="20" alt="Shrines Icon" />
<a href="#shrines">{% translate "Shrines" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/icons/screenshots.png' %}" width="20" height="20"
alt="Screenshots Icon" />
<a href="{% url 'core:screenshots' %}">{% translate "Screenshots" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/icons/chatrooms.png' %}" width="20" height="20"
alt="Chatrooms Icon" />
<a href="#chatrooms">{% translate "Chatrooms" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/icons/guestbook.png' %}" width="20" height="20"
alt="Guestbook Icon" />
<a href="#guestbook">{% translate "Guestbook" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/icons/pagodarealm.png' %}" width="20" height="20"
alt="The Pagoda Realm Icon" />
<a href="">{% translate "The Pagoda Realm" %}</a>
</div>
<div class="navigation-item">
{% if not user.is_authenticated %}
<img src="{% static 'images/core/icons/registeraccount.png' %}" width="20" height="20"
alt="Register Account Icon" />
<a href="#register">{% translate "Register Account" %}</a>
{% else %}
<img src="{% static 'images/core/icons/useraccount.png' %}" width="20" height="20"
alt="My Account Icon" />
<a href="#account">{% translate "My Account" %}</a>
{% endif %}
</div>
<div class="navigation-item {{ request.LANGUAGE_CODE }}">
<img src="{% static 'images/core/icons/changelanguage.png' %}" width="20" height="20"
alt="Change Language Icon" />
<button class="link-button"
onclick="changeLanguage('{{ request.ALT_LANGUAGE }}')">
{% if request.LANGUAGE_CODE == 'ja' %}
English (英語)
{% else %}
日本語 (Japanese)
{% endif %}
</button>
</div>
</div>
</div>
<div id="search-area">
<form action="#" method="get" id="search-form">
<input type="text"
name="q"
placeholder="{% translate "Search" %}"
autocomplete="off"
value="{{ request.GET.q }}"
required />
</form>
</div>
<div class="navigation-links">
<div class="navigation-title-container">
<h1 id="thegoodstuff" class="navigation-title">{% translate "The Good Stuff" %}</h1>
</div>
<div class="navigation-items-container">
<div class="navigation-item">
<img src="{% static 'images/core/icons/discover.png' %}" width="20" height="20" alt="Discover Icon" />
<a href="#discover">{% translate "Discover" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/icons/calendar.png' %}" width="20" height="20"
alt="Calendar Icon" />
<a href="#calendar">{% translate "Post Calendar" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/icons/anime.png' %}" width="20" height="20" alt="Anime Icon" />
<a href="#anime">{% translate "Anime Streams" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/icons/matrix.png' %}" width="20" height="20"
alt="The Matrix Icon" />
<a href="#matrix">{% translate "The Matrix" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/icons/marketplace.png' %}" width="20" height="20"
alt="Marketplace Icon" />
<a href="#marketplace">{% translate "Marketplace" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/icons/discussions.png' %}" width="20" height="20"
alt="Discussions Icon" />
<a href="#discussions">{% translate "Discussions" %}</a>
</div>
</div>
</div>
<div class="pamphlet pamphlet-big"></div>
<div class="navigation-links">
<div class="navigation-title-container">
<h1 class="navigation-title">{% translate "Site Spells" %}</h1>
</div>
<div class="navigation-items-container">
<div class="navigation-item">
{% if request.COOKIES.summonOneko == 'true' %}
<img src="{% static 'images/core/icons/withdraw_oneko.gif' %}" width="20" height="20"
alt="Withdraw Oneko Icon" />
<button class="link-button"
onclick="document.cookie = 'summonOneko=false;path=/';location.reload();">{% translate "Withdraw Oneko" %}</button>
{% else %}
<img src="{% static 'images/core/icons/summon_oneko.gif' %}" width="20" height="20"
alt="Summon Oneko Icon" />
<button class="link-button"
onclick="document.cookie = 'summonOneko=false;path=/';location.reload();">{% translate "Withdraw Oneko" %}</button>
{% endif %}
</div>
<div class="navigation-item">
<img src="{% static 'images/core/icons/harlemshake.gif' %}" width="20" height="20"
alt="Harlem Shake Icon" />
<button class="link-button" onclick="javascript:harlemShakeAndBake();">{% translate "Harlem Shake" %}</button>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/icons/dvd.png' %}" width="20" height="20"
alt="DVD Sitesaver Icon" />
<button class="link-button" onclick="javascript:dvdSitesaver();">{% translate "DVD Sitesaver" %}</button>
</div>
</div>
</div>
{% if user.is_staff or user.is_superuser %}
<div class="navigation-links">
<div class="navigation-title-container">
<h1 class="navigation-title">{% translate "Admin Area" %}</h1>
</div>
<div class="navigation-items-container">
<div class="navigation-item">
<img src="{% static 'images/core/gifs/right_hand.gif' %}" width="20" height="20"
alt="Announcements Manager Icon" />
<a href="{% url "administration:announcements" %}">{% translate "Announcement Manager" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/gifs/right_hand.gif' %}" width="20" height="20"
alt="Emoji Manager Icon" />
<a href="{% url 'administration:emojis' %}">{% translate "Emoji Manager" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/gifs/right_hand.gif' %}" width="20" height="20"
alt="KawaiiBeats Manager Icon" />
<a href="{% url 'administration:kawaiibeats' %}">{% translate "KawaiiBeats Manager" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/gifs/right_hand.gif' %}" width="20" height="20"
alt="Users Manager Icon" />
<a href="#manage-users">{% translate "User Manager" %}</a>
</div>
<div class="navigation-item">
<img src="{% static 'images/core/gifs/right_hand.gif' %}" width="20" height="20"
alt="Site Administration Icon" />
<a href="{% url 'admin:index' %}">{% translate "Site Administration" %}</a>
</div>
</div>
</div>
{% endif %}
<p class="sidebar-credits">{% translate "This website uses cookies and there's nothing you can do about it!" %}</p>
</div>
{% block scripts %}
<script type="text/javascript">
function changeLanguage(language) {
document.cookie = `site_language=${language};path=/`
location.reload()
}
</script>
{% endblock scripts %}
|