index.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. <html>
  2. <head>
  3. <title>{{title}} - {{logo}}</title>
  4. <link rel="stylesheet" href="{{url_for('static', filename='primer.css')}}">
  5. <link rel="stylesheet" href="{{url_for('static', filename='style.css')}}">
  6. <link rel="stylesheet" href="{{url_for('static', filename='font-awesome/css/font-awesome.min.css')}}">
  7. <script type="text/x-mathjax-config">
  8. MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
  9. </script>
  10. <script type="text/javascript" async
  11. src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_CHTML">
  12. </script>
  13. <meta name="twitter:creator" content="@{{logo}}">
  14. <meta name="twitter:title" content="{{title}}">
  15. <meta name="twitter:site" content="@{{logo}}">
  16. <meta name="twitter:card" content="summary">
  17. <meta name="twitter:description" content="{{data}}" />
  18. <link rel="shortcut icon" href="{{url_for('static', filename='images/on.ico')}}">
  19. <meta name="viewport" content="width=device-width, initial-scale=1">
  20. <style>
  21. {{custom}}
  22. </style>
  23. </head>
  24. <body>
  25. <br>
  26. <div class="one-fifth column">
  27. <div id="top">
  28. <a href="/" id="logo">{{logo}}</a>
  29. <div>
  30. <a href="/recentchanges" id="RecentChanges"><i class="fa fa-refresh" aria-hidden="true"></i><span id="is_mobile">최근 변경</span></a>
  31. <a href="/recentdiscuss" id="RecentChanges"><i class="fa fa-comment" aria-hidden="true"></i><span id="is_mobile">최근 토론</span></a>
  32. <a href="/random" id="log"><i class="fa fa-random" aria-hidden="true"></i></a>
  33. <a href="/user" id="log">{% if login == 1 %}<i class="fa fa-user" aria-hidden="true"></i>{% elif login == 0 %}<i class="fa fa-user-times" aria-hidden="true"></i>{% else %}<i class="fa fa-user-secret" aria-hidden="true"></i>{% endif %}</a>
  34. <a href="/other" id="log"><i class="fa fa-cogs" aria-hidden="true"></i></a>
  35. </div>
  36. <form method="POST" action="/search" id="search">
  37. <div class="input-group">
  38. <input class="form-control" name="search" type="text">
  39. <span class="input-group-button">
  40. <button id="goto" class="btn" formaction="/goto"><i class="fa fa-share" aria-hidden="true"></i></button>
  41. </span>
  42. <span class="input-group-button">
  43. <button class="btn"><i class="fa fa-search" aria-hidden="true"></i></button>
  44. </span>
  45. </div>
  46. </form>
  47. </div>
  48. </div>
  49. <div class="scroll-buttons">
  50. <a class="scroll-toc" href="#toc"><i class="fa fa-list-alt" aria-hidden="true"></i></a>
  51. <a class="scroll-button" href="#top" id="left"><i class="fa fa-arrow-up" aria-hidden="true"></i></a>
  52. <a class="scroll-bottom" href="#powered" id="right"><i class="fa fa-arrow-down" aria-hidden="true"></i></a>
  53. </div>
  54. <div id="all_contect">
  55. <div id="left_bar">
  56. <a href="#">맨 위로</a>
  57. <br>
  58. <br>
  59. {% autoescape false %}
  60. {{left}}
  61. {% endautoescape %}
  62. </div>
  63. <div class="four-fifths column">
  64. <div id="tool">
  65. <nav class="menu">
  66. <a class="menu-item selected" href="#" onclick="return false">{% if sub %}{{sub}}{% elif tn == 1 %}문서{% else %}기타{% endif %}</a>
  67. {% if tn == 1 %}
  68. <a class="menu-item" href="/edit/{{page}}">수정</a>
  69. <a class="menu-item" id="{{topic}}" href="/topic/{{page}}">토론</a>
  70. <a class="menu-item" href="/delete/{{page}}">삭제</a>
  71. <a class="menu-item" href="/move/{{page}}">이동</a>
  72. <a class="menu-item" href="/raw/{{page}}">Raw</a>
  73. <a class="menu-item" href="/history/{{page}}/n/1">역사</a>
  74. <a class="menu-item" href="/backlink/{{page}}/n/1">역링크</a>
  75. {% if redirect %}
  76. <a class="menu-item" href="/w/{{page}}">넘기기</a>
  77. {% endif %}
  78. {% if admin == "ACL" %}
  79. <a class="menu-item" href="/acl/{{page}}">ACL</a>
  80. {% endif %}
  81. {% if uppage %}
  82. <a class="menu-item" style="{{style}}" href="/w/{{uppage}}">상위</a>
  83. {% endif %}
  84. {% elif tn == 6 or tn == 13 or not tn and not sub == '역링크' or tn == 12 or tn == 3 or tn == 4 or tn == 20 or tn == 21 %}
  85. <a class="menu-item" href="javascript:history.back(-1);">뒤로</a>
  86. {% elif tn == 10 and not list or tn == 11 %}
  87. <a class="menu-item" href="/topic/{{page}}">토론 목록</a>
  88. {% else %}
  89. <a class="menu-item" href="/w/{{page}}">문서</a>
  90. {% endif %}
  91. </nav>
  92. </div>
  93. <h1 class="title">{{title}}{% if acl %} <sub>{{acl}}</sub>{% endif %}{% if sub %} <sub>({{sub}})</sub>{% endif %}</h1>
  94. {% if tn == 1 %}
  95. {% if redirect %}
  96. {% autoescape false %}
  97. <li style="margin-top: -20px;"><a href="/w/{{redirect}}/from/{{page}}">{{redirect}}</a>에서 넘어 왔습니다.</li>
  98. <br>
  99. {% endautoescape %}
  100. {% endif %}
  101. <div>
  102. {% autoescape false %}
  103. {{data}}
  104. {% endautoescape %}
  105. </div>
  106. {% elif tn == 2 %}
  107. {% if login == 0 %}
  108. <br>
  109. <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
  110. <br>
  111. <br>
  112. {% endif %}
  113. {% if section == 1 %}
  114. <form id="usrform" name="f1" method="POST" action="/edit/{{page}}/section/{{number}}">
  115. <textarea rows="30" cols="100" name="content" form="usrform">{{data}}</textarea>
  116. {% if preview == 1 %}
  117. <textarea style="display:none;" rows="30" cols="100" name="otent" form="usrform">{{odata}}</textarea>
  118. {% else %}
  119. <textarea style="display:none;" rows="30" cols="100" name="otent" form="usrform">{{data}}</textarea>
  120. {% endif %}
  121. <input name="send" style="margin-top:10px;width:100%" type="text">
  122. <br>
  123. <br>
  124. <div class="form-actions">
  125. <button class="btn btn-primary" type="submit" onclick="f1.action='/edit/{{page}}/section/{{number}}';">저장</button>
  126. <button class="btn" type="submit" onclick="f1.action='/preview/{{page}}/section/{{number}}';">미리보기</button>
  127. </div>
  128. </form>
  129. {% else %}
  130. <form id="usrform" name="f1" method="POST" action="/edit/{{page}}">
  131. <textarea rows="30" cols="100" name="content" form="usrform">{{data}}</textarea>
  132. <input name="send" style="margin-top:10px;width:100%" type="text">
  133. <br>
  134. <br>
  135. <div class="form-actions">
  136. <button class="btn btn-primary" type="submit" onclick="f1.action='/edit/{{page}}';">저장</button>
  137. <button class="btn" type="submit" onclick="f1.action='/preview/{{page}}';">미리보기</button>
  138. </div>
  139. </form>
  140. {% endif %}
  141. {% if preview == 1 %}
  142. {% autoescape false %}
  143. {{enddata}}
  144. {% endautoescape %}
  145. {% endif %}
  146. {% elif tn == 3 %}
  147. <table style="width: 100%;">
  148. <tbody>
  149. <tr>
  150. <td style="text-align: center;width:33.33%;">문서명</td>
  151. <td style="text-align: center;width:33.33%;">기여자</td>
  152. <td style="text-align: center;width:33.33%;">시간</td>
  153. </tr>
  154. </tbody>
  155. </table>
  156. {% autoescape false %}
  157. {{rows}}
  158. {% endautoescape %}
  159. {% elif tn == 4 %}
  160. {% autoescape false %}
  161. {{rows}}
  162. {% endautoescape %}
  163. {% elif tn == 5 %}
  164. <form class="usrform" method='POST' action='/history/{{page}}/n/1'>
  165. <select name="a">
  166. {% autoescape false %}
  167. {{select}}
  168. {% endautoescape %}
  169. </select>
  170. <select name="b">
  171. {% autoescape false %}
  172. {{select}}
  173. {% endautoescape %}
  174. </select>
  175. <button class="btn btn-primary" type='submit'>리비전 비교</button>
  176. <br>
  177. <br>
  178. <table style="width: 100%;">
  179. <tbody>
  180. <tr>
  181. <td style="text-align: center;width:33.33%;">판</td>
  182. <td style="text-align: center;width:33.33%;">기여자</td>
  183. <td style="text-align: center;width:33.33%;">시간</td>
  184. </tr>
  185. </tbody>
  186. </table>
  187. {% autoescape false %}
  188. {{rows}}
  189. {% endautoescape %}
  190. {% elif tn == 6 %}
  191. <div>
  192. {% autoescape false %}
  193. {{data}}
  194. {% endautoescape %}
  195. </div>
  196. {% elif tn == 7 %}
  197. <div>
  198. {% autoescape false %}
  199. {{data}}
  200. {% endautoescape %}
  201. </div>
  202. {% elif tn == 8 %}
  203. <form id="usrform" method="POST" action="/delete/{{page}}">
  204. {{plus}}
  205. <br>
  206. <br>
  207. <button class="btn btn-primary" type="submit">삭제</button>
  208. </form>
  209. {% if login == 0 %}
  210. <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
  211. {% endif %}
  212. {% elif tn == 9 %}
  213. <form id="usrform" method="POST" action="/move/{{page}}">
  214. {{plus}}
  215. <br>
  216. <br>
  217. <input class="form-control input-sm" value="{{title}}" name="title" type="text">
  218. <br>
  219. <br>
  220. <button class="btn btn-primary" type="submit">이동</button>
  221. </form>
  222. {% if login == 0 %}
  223. <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
  224. {% endif %}
  225. {% elif tn == 10 %}
  226. <form id="usrform" style="margin-top: -30px;" method="POST" action="/topic/{{page}}">
  227. {% autoescape false %}
  228. {{plus}}
  229. {% endautoescape %}
  230. {% if list == 1 %}
  231. <br>
  232. <a href="/topic/{{page}}/close">(닫힌 토론)</a> <a href="/topic/{{page}}/agree">(합의된 토론)</a>
  233. <br>
  234. <br>
  235. <input class="form-control" name="topic" style="width: 100%">
  236. <br>
  237. <br>
  238. <button class="btn btn-primary" type="submit">새토론</button>
  239. {% endif %}
  240. </form>
  241. {% elif tn == 11 %}
  242. <h2 style="margin-top: -15px;">{{toron}}</h2>
  243. <br>
  244. {% autoescape false %}
  245. {{rows}}
  246. {% endautoescape %}
  247. {% if ban == 1 %}
  248. {% else %}
  249. <a id="reload" href="javascript:window.location.reload(true);">(갱신)</a> <a href="#reload">(갱신 전에 누르시오)</a>
  250. <form id="usrform" style="{{style}}" method="POST" action="/topic/{{page}}/sub/{{suburl}}">
  251. <br>
  252. <textarea rows="10" cols="100" name="content" form="usrform"></textarea>
  253. <br>
  254. <br>
  255. <button class="btn btn-primary" type="submit">전송</button>
  256. </form>
  257. {% if login == 0 and style == '' %}
  258. <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
  259. {% endif %}
  260. {% endif %}
  261. {% elif tn == 12 %}
  262. <table style="width: 100%;">
  263. <tbody>
  264. <tr>
  265. <td style="text-align: center;width:50%;">토론명</td>
  266. <td style="text-align: center;width:50%;">시간</td>
  267. </tr>
  268. </tbody>
  269. </table>
  270. {% autoescape false %}
  271. {{rows}}
  272. {% endautoescape %}
  273. {% elif tn == 13 %}
  274. <form id="usrform" method="POST" action="/revert/{{page}}/r/{{r}}">
  275. {{plus}}
  276. <br>
  277. <br>
  278. <button class="btn btn-primary" type="submit">되돌리기</button>
  279. </form>
  280. {% if login == 0 %}
  281. <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
  282. {% endif %}
  283. {% elif tn == 15 %}
  284. {% if title == '회원가입' %}
  285. <form id="usrform" method="POST" action="/register">
  286. {% elif title == '비밀번호 변경' %}
  287. <form id="usrform" method="POST" action="/change">
  288. {% else %}
  289. <form id="usrform" method="POST" action="/login">
  290. {% endif %}
  291. <span>아이디</span>
  292. <br>
  293. <br>
  294. <input name="id" type="text">
  295. <br>
  296. <br>
  297. <span>{% if title == '비밀번호 변경' %}현재 {% endif %}비밀번호</span>
  298. <br>
  299. <br>
  300. <input name="pw" type="password">
  301. <br>
  302. <br>
  303. {% if not title == '로그인' %}
  304. <span>{% if title == '비밀번호 변경' %}변경할 비밀번호{% else %}재 확인{% endif %}</span>
  305. <br>
  306. <br>
  307. <input name="pw2" type="password">
  308. <br>
  309. <br>
  310. {% if title == '비밀번호 변경' %}
  311. <span>재 확인</span>
  312. <br>
  313. <br>
  314. <input name="pw3" type="password">
  315. <br>
  316. <br>
  317. {% endif %}
  318. {% endif %}
  319. <button class="btn btn-primary" type="submit">{{enter}}</button>
  320. </form>
  321. {% elif tn == 16 %}
  322. <form id="usrform" method="POST" action="/ban/{{page}}">
  323. {% if now == '차단' or now == '대역 차단' %}
  324. <input class="form-control" name="end" style="width: 100%">
  325. <br>
  326. <br>
  327. <span>아무것도 안 적으면 무기한 차단입니다.</span>
  328. <br>
  329. <br>
  330. <span>차단 일 지정시 형식은 YYYY-MM-DD로 기록해야 합니다. (예시: 2017-01-20, 2017-10-15)</span>
  331. <br>
  332. <br>
  333. <span>지금 시각은 {{today}} 입니다.</span>
  334. <br>
  335. <br>
  336. <input class="form-control" name="why" style="width: 100%">
  337. <br>
  338. <br>
  339. <span>사유를 쓰는 곳입니다.</span>
  340. {% if allif == 1 %}
  341. <br>
  342. <br>
  343. <input type="checkbox" name="band">
  344. <span>대역 차단</span>
  345. </input>
  346. {% endif %}
  347. <br>
  348. <br>
  349. {% endif %}
  350. <button class="btn btn-primary" type="submit">{{now}}</button>
  351. </form>
  352. {% elif tn == 18 %}
  353. <form id="usrform" method="POST" action="/admin/{{page}}">
  354. {% if now == '권한 부여' %}
  355. <select name="select">
  356. <option value="admin" selected="selected">관리자</option>
  357. <option value="owner">소유자</option>
  358. </select>
  359. <br>
  360. <br>
  361. {% endif %}
  362. <button class="btn btn-primary" type="submit">{{now}}</button>
  363. </form>
  364. {% elif tn == 19 %}
  365. <br>
  366. <span>{{now}}</span>
  367. <br>
  368. <br>
  369. <form id="usrform" method="POST" action="/acl/{{page}}">
  370. <select name="select">
  371. <option value="admin" selected="selected">관리자만</option>
  372. <option value="user">유저 이상</option>
  373. <option value="normal">일반</option>
  374. </select>
  375. <br>
  376. <br>
  377. <button class="btn btn-primary" type="submit">ACL 변경</button>
  378. </form>
  379. {% elif tn == 20 %}
  380. <table style="width: 100%;">
  381. <tbody>
  382. <tr>
  383. <td style="text-align: center;width:20%;">차단자</td>
  384. <td style="text-align: center;width:20%;">관리자</td>
  385. <td style="text-align: center;width:20%;">언제까지</td>
  386. <td style="text-align: center;width:20%;">왜</td>
  387. <td style="text-align: center;width:20%;">시간</td>
  388. </tr>
  389. </tbody>
  390. </table>
  391. {% autoescape false %}
  392. {{rows}}
  393. {% endautoescape %}
  394. {% elif tn == 21 %}
  395. <div>
  396. <form action="" method=post enctype=multipart/form-data>
  397. <input type=file name=file>
  398. <input type=submit value=Upload>
  399. </form>
  400. </div>
  401. <span>{{number}}MB 이하 파일만 업로드 가능하고 파일 명에 ./\*<>|:? 들은 불가능하며 확장자는 jpg, png, gif, jpeg만 가능합니다.</span>
  402. {% elif tn == 22 %}
  403. <table style="width: 100%;">
  404. <tbody>
  405. <tr>
  406. <td style="text-align: center;width:33.33%;">유저</td>
  407. <td style="text-align: center;width:33.33%;">아이피</td>
  408. <td style="text-align: center;width:33.33%;">언제</td>
  409. </tr>
  410. </tbody>
  411. </table>
  412. {% autoescape false %}
  413. {{rows}}
  414. {% endautoescape %}
  415. {% else %}
  416. <div>
  417. {% autoescape false %}
  418. {{data}}
  419. {% endautoescape %}
  420. </div>
  421. {% endif %}
  422. <hr id="last">
  423. <p>{% autoescape false %}{{license}}{% endautoescape %}</p>
  424. <div id="powered">
  425. <a href="https://github.com/2DU/openNAMU"><img src="{{url_for('static', filename='images/on2.png')}}" width="100px"></a>
  426. </div>
  427. </div>
  428. </div>
  429. </body>
  430. </html>