index.html 19 KB

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