index.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  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. <link rel="stylesheet" href="{{url_for('static', filename='katex/katex.min.css')}}">
  8. <script src="{{url_for('static', filename='katex/katex.min.js')}}"></script>
  9. <link rel="shortcut icon" href="{{url_for('static', filename='images/on.ico')}}">
  10. <meta name="viewport" content="width=device-width, initial-scale=1">
  11. </head>
  12. <body>
  13. <br>
  14. <div class="one-fifth column">
  15. <div id="top">
  16. <a href="/" id="logo">{{logo}}</a>
  17. <div>
  18. <a href="/recentchanges" id="RecentChanges"><i class="fa fa-refresh" aria-hidden="true"></i><span id="is_mobile">최근 변경</span></a>
  19. <a href="/recentdiscuss" id="RecentChanges"><i class="fa fa-comment" aria-hidden="true"></i><span id="is_mobile">최근 토론</span></a>
  20. <a href="/random" id="log"><i class="fa fa-random" aria-hidden="true"></i></a>
  21. <a href="/user" id="log"><i class="fa fa-user" aria-hidden="true"></i></a>
  22. <a href="/other" id="log"><i class="fa fa-cogs" aria-hidden="true"></i></a>
  23. </div>
  24. <form method="POST" action="/search" id="search">
  25. <div class="input-group">
  26. <input class="form-control" name="search" type="text">
  27. <span class="input-group-button"><button class="btn"><i class="fa fa-search" aria-hidden="true"></i></button></span>
  28. </div>
  29. </form>
  30. </div>
  31. </div>
  32. <div class="scroll-buttons">
  33. <a class="scroll-toc" href="#toc"><i class="fa fa-list-alt" aria-hidden="true"></i></a>
  34. <a class="scroll-button" href="#top" id="left"><i class="fa fa-arrow-up" aria-hidden="true"></i></a>
  35. <a class="scroll-bottom" href="#powered" id="right"><i class="fa fa-arrow-down" aria-hidden="true"></i></a>
  36. </div>
  37. <div id="left_bar">
  38. <a href="#">맨 위로</a>
  39. <br>
  40. <br>
  41. {% autoescape false %}
  42. {{left}}
  43. {% endautoescape %}
  44. </div>
  45. <div class="four-fifths column">
  46. {% if tn == 1 %}
  47. <div id="tool">
  48. <nav class="menu">
  49. <a class="menu-item selected" href="#" onclick="return false">문서</a>
  50. <a class="menu-item" href="/edit/{{page}}">수정</a>
  51. <a class="menu-item" href="/topic/{{page}}">토론</a>
  52. <a class="menu-item" href="/delete/{{page}}">삭제</a>
  53. <a class="menu-item" href="/move/{{page}}">이동</a>
  54. <a class="menu-item" href="/raw/{{page}}">Raw</a>
  55. <a class="menu-item" href="/history/{{page}}/n/1">역사</a>
  56. <!-- <a class="menu-item" href="/xref/{{page}}">역링크</a> -->
  57. <a class="menu-item" style="{{style}}" href="/w/{{uppage}}">상위</a>
  58. </nav>
  59. </div>
  60. <h1 class="title">{{title}} <sub>{{acl}}</sub></h1>
  61. {% if redirect %}
  62. {% autoescape false %}
  63. <li style="margin-top: -20px;">{{redirect}}</li>
  64. <br>
  65. {% endautoescape %}
  66. {% endif %}
  67. <div>
  68. {% autoescape false %}
  69. {{data}}
  70. {% endautoescape %}
  71. </div>
  72. {% elif tn == 2 %}
  73. {% if preview == 1 %}
  74. <div id="tool">
  75. <nav class="menu">
  76. <a class="menu-item selected" href="#">미리보기</a>
  77. <a class="menu-item" href="/w/{{page}}">문서</a>
  78. </nav>
  79. </div>
  80. {% else %}
  81. <div id="tool">
  82. <nav class="menu">
  83. <a class="menu-item selected" href="#">수정</a>
  84. <a class="menu-item" href="/w/{{page}}">문서</a>
  85. </nav>
  86. </div>
  87. {% endif %}
  88. {% if preview == 1 %}
  89. <h1 class="title">{{title}} <sub>(미리보기)</sub></h1>
  90. {% else %}
  91. <h1 class="title">{{title}} <sub>(수정)</sub></h1>
  92. {% endif %}
  93. <form id="usrform" name="f1" method="POST" action="/edit/{{page}}">
  94. <textarea rows="30" cols="100" name="content" form="usrform">{{data}}</textarea>
  95. <input name="send" style="margin-top:10px;width:100%" type="text">
  96. <br>
  97. <br>
  98. <div class="form-actions">
  99. <button class="btn btn-primary" type="submit" onclick="f1.action='/edit/{{page}}';">저장</button>
  100. <button class="btn" type="submit" onclick="f1.action='/preview/{{page}}';">미리보기</button>
  101. </div>
  102. </form>
  103. {% if preview == 1 %}
  104. {% autoescape false %}
  105. {{enddata}}
  106. {% endautoescape %}
  107. {% endif %}
  108. {% elif tn == 3 %}
  109. <h1 class="title">{{title}}</h1>
  110. <table style="width: 100%;">
  111. <tbody>
  112. <tr>
  113. <td style="text-align: center;width:33.33%;">문서명</td>
  114. <td style="text-align: center;width:33.33%;">기여자</td>
  115. <td style="text-align: center;width:33.33%;">시간</td>
  116. </tr>
  117. </tbody>
  118. </table>
  119. {% autoescape false %}
  120. {{rows}}
  121. {% endautoescape %}
  122. {% elif tn == 4 %}
  123. <h1 class="title">{{title}}</h1>
  124. {% autoescape false %}
  125. {{rows}}
  126. {% endautoescape %}
  127. {% elif tn == 5 %}
  128. <div id="tool">
  129. <nav class="menu">
  130. <a class="menu-item selected" href="#">역사</a>
  131. <a class="menu-item" href="/w/{{page}}">문서</a>
  132. </nav>
  133. </div>
  134. <h1 class="title">{{title}} <sub>(역사)</sub></h1>
  135. <form class="usrform" method='POST' action='/history/{{page}}/n/1'>
  136. <input id="form-control input-sm" type='text' id='history' name='a'>
  137. <input id="form-control input-sm" type='text' id='history' name='b'>
  138. <button class="btn btn-primary" type='submit'>리비전 비교</button>
  139. <br>
  140. <br>
  141. <table style="width: 100%;">
  142. <tbody>
  143. <tr>
  144. <td style="text-align: center;width:33.33%;">판</td>
  145. <td style="text-align: center;width:33.33%;">기여자</td>
  146. <td style="text-align: center;width:33.33%;">시간</td>
  147. </tr>
  148. </tbody>
  149. </table>
  150. {% autoescape false %}
  151. {{rows}}
  152. {% endautoescape %}
  153. {% elif tn == 6 %}
  154. <div id="tool">
  155. <nav class="menu">
  156. <a class="menu-item selected" href="#" onclick="return false">옛문서</a>
  157. <a class="menu-item" href="javascript:history.back(-1);">뒤로가기</a>
  158. </nav>
  159. </div>
  160. <h1 class="title">{{title}} <sub>(옛문서)</sub></h1>
  161. <div>
  162. {% autoescape false %}
  163. {{data}}
  164. {% endautoescape %}
  165. </div>
  166. {% elif tn == 7 %}
  167. <div id="tool">
  168. <nav class="menu">
  169. <a class="menu-item selected" href="#" onclick="return false">raw</a>
  170. <a class="menu-item" href="/w/{{page}}">문서</a>
  171. </nav>
  172. </div>
  173. <h1 class="title">{{title}} <sub>(raw)</sub></h1>
  174. <div>
  175. {% autoescape false %}
  176. {{data}}
  177. {% endautoescape %}
  178. </div>
  179. {% elif tn == 8 %}
  180. <h1 class="title">{{title}} <sub>(삭제)</sub></h1>
  181. <div id="tool">
  182. <nav class="menu">
  183. <a class="menu-item selected" href="#" onclick="return false">삭제</a>
  184. <a class="menu-item" href="/w/{{page}}">문서</a>
  185. </nav>
  186. </div>
  187. <form id="usrform" method="POST" action="/delete/{{page}}">
  188. {{plus}}
  189. <br>
  190. <br>
  191. <button class="btn btn-primary" type="submit">삭제</button>
  192. </form>
  193. {% elif tn == 9 %}
  194. <h1 class="title">{{title}} <sub>(이동)</sub></h1>
  195. <div id="tool">
  196. <nav class="menu">
  197. <a class="menu-item selected" href="#" onclick="return false">이동</a>
  198. <a class="menu-item" href="/w/{{page}}">문서</a>
  199. </nav>
  200. </div>
  201. <form id="usrform" method="POST" action="/move/{{page}}">
  202. {{plus}}
  203. <br>
  204. <br>
  205. <input class="form-control input-sm" value="{{title}}" name="title" type="text">
  206. <br>
  207. <br>
  208. <button class="btn btn-primary" type="submit">이동</button>
  209. </form>
  210. {% elif tn == 10 %}
  211. <h1 class="title">{{title}} <sub>(토론 목록)</sub></h1>
  212. {% if list == 1 %}
  213. <div id="tool">
  214. <nav class="menu">
  215. <a class="menu-item selected" href="#" onclick="return false">토론 목록</a>
  216. <a class="menu-item" href="/w/{{page}}">문서</a>
  217. </nav>
  218. </div>
  219. {% else %}
  220. <div id="tool">
  221. <nav class="menu">
  222. <a class="menu-item selected" href="#" onclick="return false">닫힌 토론 목록</a>
  223. <a class="menu-item" href="/topic/{{page}}">토론 목록</a>
  224. </nav>
  225. </div>
  226. {% endif %}
  227. <form id="usrform" method="POST" action="/topic/{{page}}">
  228. {% autoescape false %}
  229. {{plus}}
  230. {% endautoescape %}
  231. {% if list == 1 %}
  232. <br>
  233. <a href="/topic/{{page}}/close">(닫힌 토론 보기)</a>
  234. <br>
  235. <br>
  236. <input class="form-control" name="topic" style="width: 100%">
  237. <br>
  238. <br>
  239. <button class="btn btn-primary" type="submit">새토론</button>
  240. {% endif %}
  241. </form>
  242. {% elif tn == 11 %}
  243. <h1 class="title">{{title}} <sub>(토론)</sub></h1>
  244. <div id="tool">
  245. <nav class="menu">
  246. <a class="menu-item selected" href="#" onclick="return false">토론</a>
  247. <a class="menu-item" href="/topic/{{page}}">토론 목록</a>
  248. </nav>
  249. </div>
  250. <h2>{{sub}}</h2>
  251. <br>
  252. {% autoescape false %}
  253. {{rows}}
  254. {% endautoescape %}
  255. {% if ban == 1 %}
  256. {% else %}
  257. <form id="usrform" method="POST" action="/topic/{{page}}/sub/{{suburl}}">
  258. <br>
  259. <textarea rows="10" cols="100" name="content" form="usrform"></textarea>
  260. <br>
  261. <br>
  262. <button class="btn btn-primary" type="submit">전송</button>
  263. </form>
  264. {% endif %}
  265. {% elif tn == 12 %}
  266. <h1 class="title">{{title}}</h1>
  267. <table style="width: 100%;">
  268. <tbody>
  269. <tr>
  270. <td style="text-align: center;width:50%;">토론명</td>
  271. <td style="text-align: center;width:50%;">시간</td>
  272. </tr>
  273. </tbody>
  274. </table>
  275. {% autoescape false %}
  276. {{rows}}
  277. {% endautoescape %}
  278. {% elif tn == 13 %}
  279. <h1 class="title">{{title}} <sub>(되돌리기)</sub></h1>
  280. <div id="tool">
  281. <nav class="menu">
  282. <a class="menu-item selected" href="#" onclick="return false">되돌리기</a>
  283. <a class="menu-item" href="javascript:history.back(-1);">뒤로가기</a>
  284. </nav>
  285. </div>
  286. <form id="usrform" method="POST" action="/revert/{{page}}/r/{{r}}">
  287. {{plus}}
  288. <br>
  289. <br>
  290. <button class="btn btn-primary" type="submit">되돌리기</button>
  291. </form>
  292. {% elif tn == 14 %}
  293. <h1 class="title">{{title}}</h1>
  294. <div>
  295. <h2 style="margin-top: -5px;">0.1 (알파)</h2>
  296. <li>문서 보기와 편집</li>
  297. <li>기타 문서</li>
  298. <li>랜덤 구현</li>
  299. <h2>0.2 ~ 0.9 (베타)</h2>
  300. <li>그 외 엄청나게 많은 기능 구현 (기존 <a class="out_link" href="https://github.com/2DU/OWNET">Ownet</a> 기능에서 로그인 필요한 기능 빼고 구현)</li>
  301. <h2>1.0</h2>
  302. <li>로그인 구현</li>
  303. <h2>1.1</h2>
  304. <li>차단 구현</li>
  305. <li>토론 닫기, 정지</li>
  306. <li>블라인드 구현</li>
  307. <li>ACL 기능 구현</li>
  308. <li>어드민 부여 구현</li>
  309. <h2>1.2</h2>
  310. <li>미리보기 구현</li>
  311. <li>대역 차단 구현</li>
  312. <li>diff 구현</li>
  313. <li>파일 업로드 개선</li>
  314. <li>파일 업로드 구현</li>
  315. <li>기본적인 다중 검사 기능</li>
  316. <h2>1.3</h2>
  317. <li>토론 목록 보강</li>
  318. <li>토론에 문법 지원</li>
  319. <li>비 효율적으로 돌아가던거 수정</li>
  320. <li>하위 문서 지원</li>
  321. <li>관리자 기능의 접근성 향상</li>
  322. <li>대규모도 편하게 접근되게</li>
  323. <h2>1.4 (진행중)</h2>
  324. <li>관리자 기능 접근성</li>
  325. <li>사용자 문서 (완료)</li>
  326. <li>파일 문서 생성</li>
  327. <li>사문 접근성</li>
  328. <li>검색 기능 수정 (완료)</li>
  329. <li>상위 문서 바로가기 (완료)</li>
  330. <h2>계속</h2>
  331. <li>버그 수정</li>
  332. <li>파서 제작</li>
  333. <h2>보류</h2>
  334. <li>설계 약간 변경 (느린 pymysql 대신에 다른 패키지를 쓰려고 했으나 어차피 곧 pypy 신 버전 나올테고 설치도 복잡해지니 보류)</li>
  335. <br>
  336. <h2>파이나무 라이선스</h2>
  337. <li>BSD 3-Clause License</li>
  338. <h2>외부 파일 라이선스</h2>
  339. <li>인용문 아이콘 <a class="out_link" href="http://www.flaticon.com/free-icon/quote-left_25672">Dave Gandy</a> CC 3.0 BY</li>
  340. <li>일부 파일 <a class="out_link" href="https://twitter.com/Basix1120">Basix</a></li>
  341. <br>
  342. <h2>기타</h2>
  343. <li>현재 버전 1.4.3 - Beta <s>정식 버전은 10.0이라더라.</s></li>
  344. <br>
  345. <h2>개발 이념</h2>
  346. <li>나(2DU) 쓰기 편한 엔진을 만들자</li>
  347. </div>
  348. {% elif tn == 15 %}
  349. <h1 class="title">{{title}}</h1>
  350. {% if title == '회원가입' %}
  351. <form id="usrform" method="POST" action="/register">
  352. {% else %}
  353. <form id="usrform" method="POST" action="/login">
  354. {% endif %}
  355. <span>아이디</span>
  356. <br>
  357. <br>
  358. <input name="id" type="text">
  359. <br>
  360. <br>
  361. <span>비밀번호</span>
  362. <br>
  363. <br>
  364. <input name="pw" type="password">
  365. <br>
  366. <br>
  367. <button class="btn btn-primary" type="submit">{{enter}}</button>
  368. </form>
  369. {% elif tn == 16 %}
  370. <h1 class="title">{{title}} <sub>(차단)</sub></h1>
  371. <form id="usrform" method="POST" action="/ban/{{page}}">
  372. {% if now == '차단' or now == '대역 차단' %}
  373. <input class="form-control" name="end" style="width: 100%">
  374. <br>
  375. <br>
  376. <span>아무것도 안 적으면 무기한 차단 입니다.</span>
  377. <br>
  378. <br>
  379. <span>차단 일 지정시 형식은 YYYY-MM-DD로 기록 해야합니다. (예시: 2017-01-20, 2017-10-15)</span>
  380. <br>
  381. <br>
  382. <span>지금 시각은 {{today}} 입니다.</span>
  383. <br>
  384. <br>
  385. <input class="form-control" name="why" style="width: 100%">
  386. <br>
  387. <br>
  388. <span>사유를 쓰는 곳 입니다.</span>
  389. {% if allif == 1 %}
  390. <br>
  391. <br>
  392. <input type="checkbox" name="band">
  393. <span>대역 차단</span>
  394. </input>
  395. {% endif %}
  396. <br>
  397. <br>
  398. {% endif %}
  399. <button class="btn btn-primary" type="submit">{{now}}</button>
  400. </form>
  401. {% elif tn == 17 %}
  402. <h1 class="title">{{title}}</h1>
  403. <div>
  404. <a class="out_link" style="margin-top: -5px;" href="https://namu.wiki/w/%EB%82%98%EB%AC%B4%EC%9C%84%ED%82%A4:%ED%8E%B8%EC%A7%91%20%EB%8F%84%EC%9B%80%EB%A7%90">참조</a>
  405. <h2>기초 문법</h2>
  406. <li>~~취소선~~ --취소선--</li>
  407. <li>'''강조'''</li>
  408. <li>''기울이기''</li>
  409. <li>__언더 바__</li>
  410. <li>^^윗 첨자^^</li>
  411. <li>,,아랫 첨자,,</li>
  412. <h2>문단 문법</h2>
  413. <li>[목차]</li>
  414. <li>= 1단계 문단 =</li>
  415. <li>== 2단계 문단 ==</li>
  416. <li>=== 3단계 문단 ===</li>
  417. <li>==== 4단계 문단 ====</li>
  418. <li>===== 5단계 문단 =====</li>
  419. <li>====== 6단계 문단 ======</li>
  420. <h2>링크 문법</h2>
  421. <li>[[내부 링크]]</li>
  422. <li>[[내부 링크|보이는 내용]]</li>
  423. <li>[[외부 링크]]</li>
  424. <li>[[외부 링크|보이는 내용]]</li>
  425. <h2>유튜브 문법</h2>
  426. <li>[youtube(코드)]</li>
  427. <li>[youtube(코드, width=가로, height=세로)]</li>
  428. <li>[youtube(코드, height=세로, width=가로)]</li>
  429. <h2>각주 문법</h2>
  430. <li>[* 내용]</li>
  431. <li>[*이름 내용]</li>
  432. <li>[각주]</li>
  433. <h2>넘겨주기 문법</h2>
  434. <li>#redirect 문서명</li>
  435. <li>#넘겨주기 문서명</li>
  436. </div>
  437. {% elif tn == 18 %}
  438. <h1 class="title">{{title}} <sub>(권한 부여)</sub></h1>
  439. <form id="usrform" method="POST" action="/admin/{{page}}">
  440. {% if now == '권한 부여' %}
  441. <select name="select">
  442. <option value="admin" selected="selected">관리자</option>
  443. <option value="ownet">소유자</option>
  444. </select>
  445. <br>
  446. <br>
  447. {% endif %}
  448. <button class="btn btn-primary" type="submit">{{now}}</button>
  449. </form>
  450. {% elif tn == 19 %}
  451. <h1 class="title">{{title}} <sub>(ACL)</sub></h1>
  452. <p>{{now}}</p>
  453. <form id="usrform" method="POST" action="/acl/{{page}}">
  454. <select name="select">
  455. <option value="admin" selected="selected">관리자만</option>
  456. <option value="user">유저 이상</option>
  457. <option value="normal">일반</option>
  458. </select>
  459. <br>
  460. <br>
  461. <button class="btn btn-primary" type="submit">ACL 변경</button>
  462. </form>
  463. {% elif tn == 20 %}
  464. <h1 class="title">{{title}}</h1>
  465. <table style="width: 100%;">
  466. <tbody>
  467. <tr>
  468. <td style="text-align: center;width:20%;">차단자</td>
  469. <td style="text-align: center;width:20%;">관리자</td>
  470. <td style="text-align: center;width:20%;">언제까지</td>
  471. <td style="text-align: center;width:20%;">왜</td>
  472. <td style="text-align: center;width:20%;">시간</td>
  473. </tr>
  474. </tbody>
  475. </table>
  476. {% autoescape false %}
  477. {{rows}}
  478. {% endautoescape %}
  479. {% elif tn == 21 %}
  480. <h1 class="title">{{title}}</h1>
  481. <div>
  482. <form action="" method=post enctype=multipart/form-data>
  483. <input type=file name=file>
  484. <input type=submit value=Upload>
  485. </form>
  486. </div>
  487. <span>{{number}}MB 이하 파일만 업로드 가능하고 jpg png gif jpeg만 가능 합니다.</span>
  488. {% elif tn == 22 %}
  489. <h1 class="title">{{title}}</h1>
  490. <table style="width: 100%;">
  491. <tbody>
  492. <tr>
  493. <td style="text-align: center;width:33.33%;">유저</td>
  494. <td style="text-align: center;width:33.33%;">아이피</td>
  495. <td style="text-align: center;width:33.33%;">언제</td>
  496. </tr>
  497. </tbody>
  498. </table>
  499. {% autoescape false %}
  500. {{rows}}
  501. {% endautoescape %}
  502. {% else %}
  503. <div id="tool">
  504. <nav class="menu">
  505. <a class="menu-item selected" href="#" onclick="return false">{{title}}</a>
  506. <a class="menu-item" href="javascript:history.back(-1);">뒤로가기</a>
  507. </nav>
  508. </div>
  509. <h1 class="title">{{title}}</h1>
  510. <div>
  511. {% autoescape false %}
  512. {{data}}
  513. {% endautoescape %}
  514. </div>
  515. {% endif %}
  516. <hr id="last">
  517. <p>{{license}}</p>
  518. <div id="powered">
  519. <a href="https://github.com/2DU/PYnamu"><img src="{{url_for('static', filename='images/on2.png')}}" width="100px"></a>
  520. </div>
  521. </div>
  522. </body>
  523. </html>