index.html 19 KB

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