index.html 20 KB

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