2
0

index.html 21 KB

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