index.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  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-long-arrow-left" 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}}">역사</a>
  56. <a class="menu-item" href="/xref/{{page}}">역링크</a>
  57. </nav>
  58. </div>
  59. <h1 class="titlee">{{title}} <sub>{{acl}}</sub></h1>
  60. {% if redirect %}
  61. {% autoescape false %}
  62. <li>{{redirect}}</li>
  63. <br>
  64. {% endautoescape %}
  65. {% endif %}
  66. <div>
  67. {% autoescape false %}
  68. {{data}}
  69. {% endautoescape %}
  70. </div>
  71. {% elif tn == 2 %}
  72. {% if preview == 1 %}
  73. <div id="tool">
  74. <nav class="menu">
  75. <a class="menu-item selected" href="#">미리보기</a>
  76. <a class="menu-item" href="/w/{{page}}">문서</a>
  77. </nav>
  78. </div>
  79. {% else %}
  80. <div id="tool">
  81. <nav class="menu">
  82. <a class="menu-item selected" href="#">수정</a>
  83. <a class="menu-item" href="/w/{{page}}">문서</a>
  84. </nav>
  85. </div>
  86. {% endif %}
  87. {% if preview == 1 %}
  88. <h1 class="title">{{title}} <sub>(미리보기)</sub></h1>
  89. {% else %}
  90. <h1 class="title">{{title}} <sub>(수정)</sub></h1>
  91. {% endif %}
  92. <form id="usrform" name="f1" method="POST" action="/edit/{{page}}">
  93. <textarea rows="30" cols="100" name="content" form="usrform">{{data}}</textarea>
  94. <input name="send" style="margin-top:10px;width:100%" type="text">
  95. <br>
  96. <br>
  97. <div class="form-actions">
  98. <button class="btn btn-primary" type="submit" onclick="f1.action='/edit/{{page}}';">저장</button>
  99. <button class="btn" type="submit" onclick="f1.action='/preview/{{page}}';">미리보기</button>
  100. </div>
  101. </form>
  102. {% if preview == 1 %}
  103. {% autoescape false %}
  104. {{enddata}}
  105. {% endautoescape %}
  106. {% endif %}
  107. {% elif tn == 3 %}
  108. <h1 class="title">{{title}}</h1>
  109. <table style="width: 100%;">
  110. <tbody>
  111. <tr>
  112. <td style="text-align: center;width:33.33%;">문서명</td>
  113. <td style="text-align: center;width:33.33%;">기여자</td>
  114. <td style="text-align: center;width:33.33%;">시간</td>
  115. </tr>
  116. </tbody>
  117. </table>
  118. {% autoescape false %}
  119. {{rows}}
  120. {% endautoescape %}
  121. {% elif tn == 4 %}
  122. <h1 class="title">{{title}}</h1>
  123. {% autoescape false %}
  124. {{rows}}
  125. {% endautoescape %}
  126. {% elif tn == 5 %}
  127. <div id="tool">
  128. <nav class="menu">
  129. <a class="menu-item selected" href="#">역사</a>
  130. <a class="menu-item" href="/w/{{page}}">문서</a>
  131. </nav>
  132. </div>
  133. <h1 class="title">{{title}} <sub>(역사)</sub></h1>
  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 == 6 %}
  147. <div id="tool">
  148. <nav class="menu">
  149. <a class="menu-item selected" href="#" onclick="return false">옛문서</a>
  150. <a class="menu-item" href="/history/{{page}}">목록</a>
  151. </nav>
  152. </div>
  153. <h1 class="titlee">{{title}} <sub>(옛문서)</sub></h1>
  154. <div>
  155. {% autoescape false %}
  156. {{data}}
  157. {% endautoescape %}
  158. </div>
  159. {% elif tn == 7 %}
  160. <div id="tool">
  161. <nav class="menu">
  162. <a class="menu-item selected" href="#" onclick="return false">raw</a>
  163. <a class="menu-item" href="/w/{{page}}">문서</a>
  164. </nav>
  165. </div>
  166. <h1 class="title">{{title}} <sub>(raw)</sub></h1>
  167. <div>
  168. {% autoescape false %}
  169. {{data}}
  170. {% endautoescape %}
  171. </div>
  172. {% elif tn == 8 %}
  173. <h1 class="title">{{title}} <sub>(삭제)</sub></h1>
  174. <div id="tool">
  175. <nav class="menu">
  176. <a class="menu-item selected" href="#" onclick="return false">삭제</a>
  177. <a class="menu-item" href="/w/{{page}}">문서</a>
  178. </nav>
  179. </div>
  180. <form id="usrform" method="POST" action="/delete/{{page}}">
  181. {{plus}}
  182. <br>
  183. <br>
  184. <button class="btn btn-primary" type="submit">삭제</button>
  185. </form>
  186. {% elif tn == 9 %}
  187. <h1 class="title">{{title}} <sub>(이동)</sub></h1>
  188. <div id="tool">
  189. <nav class="menu">
  190. <a class="menu-item selected" href="#" onclick="return false">이동</a>
  191. <a class="menu-item" href="/w/{{page}}">문서</a>
  192. </nav>
  193. </div>
  194. <form id="usrform" method="POST" action="/move/{{page}}">
  195. {{plus}}
  196. <br>
  197. <br>
  198. <input class="form-control input-sm" value="{{title}}" name="title" type="text">
  199. <br>
  200. <br>
  201. <button class="btn btn-primary" type="submit">이동</button>
  202. </form>
  203. {% elif tn == 10 %}
  204. <h1 class="title">{{title}} <sub>(토론 목록)</sub></h1>
  205. {% if list == 1 %}
  206. <div id="tool">
  207. <nav class="menu">
  208. <a class="menu-item selected" href="#" onclick="return false">토론 목록</a>
  209. <a class="menu-item" href="/w/{{page}}">문서</a>
  210. </nav>
  211. </div>
  212. {% else %}
  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="/topic/{{page}}">토론 목록</a>
  217. </nav>
  218. </div>
  219. {% endif %}
  220. <form id="usrform" method="POST" action="/topic/{{page}}">
  221. {% autoescape false %}
  222. {{plus}}
  223. {% endautoescape %}
  224. {% if list == 1 %}
  225. <br>
  226. <a href="/topic/{{page}}/close">(닫힌 토론 보기)</a>
  227. <br>
  228. <br>
  229. <input class="form-control" name="topic" style="width: 100%">
  230. <br>
  231. <br>
  232. <button class="btn btn-primary" type="submit">새토론</button>
  233. {% endif %}
  234. </form>
  235. {% elif tn == 11 %}
  236. <h1 class="titlee">{{title}} <sub>(토론)</sub></h1>
  237. <div id="tool">
  238. <nav class="menu">
  239. <a class="menu-item selected" href="#" onclick="return false">토론</a>
  240. <a class="menu-item" href="/topic/{{page}}">토론 목록</a>
  241. </nav>
  242. </div>
  243. <h2>{{sub}}</h2>
  244. <br>
  245. {% autoescape false %}
  246. {{rows}}
  247. {% endautoescape %}
  248. {% if ban == 1 %}
  249. {% else %}
  250. <form id="usrform" method="POST" action="/topic/{{page}}/sub/{{suburl}}">
  251. <br>
  252. <textarea rows="10" cols="100" name="content" form="usrform"></textarea>
  253. <br>
  254. <br>
  255. <button class="btn btn-primary" type="submit">전송</button>
  256. </form>
  257. {% endif %}
  258. {% elif tn == 12 %}
  259. <h1 class="title">{{title}}</h1>
  260. <table style="width: 100%;">
  261. <tbody>
  262. <tr>
  263. <td style="text-align: center;width:50%;">토론명</td>
  264. <td style="text-align: center;width:50%;">시간</td>
  265. </tr>
  266. </tbody>
  267. </table>
  268. {% autoescape false %}
  269. {{rows}}
  270. {% endautoescape %}
  271. {% elif tn == 13 %}
  272. <h1 class="title">{{title}} <sub>(되돌리기)</sub></h1>
  273. <div id="tool">
  274. <nav class="menu">
  275. <a class="menu-item selected" href="#" onclick="return false">되돌리기</a>
  276. <a class="menu-item" href="/w/{{page}}">문서</a>
  277. </nav>
  278. </div>
  279. <form id="usrform" method="POST" action="/revert/{{page}}/r/{{r}}">
  280. {{plus}}
  281. <br>
  282. <br>
  283. <button class="btn btn-primary" type="submit">되돌리기</button>
  284. </form>
  285. {% elif tn == 14 %}
  286. <h1 class="title">{{title}}</h1>
  287. <div>
  288. <h2 style="margin-top: -5px;">0.1 (알파)</h2>
  289. <li>문서 보기와 편집</li>
  290. <li>기타 문서</li>
  291. <li>랜덤 구현</li>
  292. <h2>0.2 ~ 0.9 (베타)</h2>
  293. <li>그 외 엄청나게 많은 기능 구현 (기존 <a href="https://github.com/2DU/OWNET">Ownet</a> 기능에서 로그인 필요한 기능 빼고 구현)</li>
  294. <h2>1.0</h2>
  295. <li>로그인 구현</li>
  296. <h2>1.1</h2>
  297. <li>차단 구현</li>
  298. <li>토론 닫기, 정지</li>
  299. <li>블라인드 구현</li>
  300. <li>ACL 기능 구현</li>
  301. <li>어드민 부여 구현</li>
  302. <h2>1.2 (진행중)</h2>
  303. <li>미리보기 구현 (완료)</li>
  304. <li>토론 목록 보강</li>
  305. <li>대역 차단 구현</li>
  306. <li>diff 구현</li>
  307. <li>파일 업로드 구현 (완료)</li>
  308. <li>관리자 기능의 접근성 향상</li>
  309. <li>기본적인 다중 검사 기능</li>
  310. <h2>1.3</h2>
  311. <li>파일 업로드 개선</li>
  312. <li>설계 약간 변경</li>
  313. <h2>계속</h2>
  314. <li>버그 수정</li>
  315. <li>파서 제작</li>
  316. <br>
  317. <h2>파이나무 라이선스</h2>
  318. <li>미정</li>
  319. <h2>외부 파일 라이선스</h2>
  320. <li>인용문 아이콘 <a href="http://www.flaticon.com/free-icon/quote-left_25672">Dave Gandy</a> CC 3.0 BY</li>
  321. <li>일부 파일 <a href="https://twitter.com/Basix1120">Basix</a></li>
  322. <br>
  323. <h2>기타</h2>
  324. <li>현재 버전 1.2.6 - Beta</li>
  325. </div>
  326. {% elif tn == 15 %}
  327. <h1 class="title">{{title}}</h1>
  328. {% if title == '회원가입' %}
  329. <form id="usrform" method="POST" action="/register">
  330. {% else %}
  331. <form id="usrform" method="POST" action="/login">
  332. {% endif %}
  333. <span>아이디</span>
  334. <br>
  335. <br>
  336. <input name="id" type="text">
  337. <br>
  338. <br>
  339. <span>비밀번호</span>
  340. <br>
  341. <br>
  342. <input name="pw" type="password">
  343. <br>
  344. <br>
  345. <button class="btn btn-primary" type="submit">{{enter}}</button>
  346. </form>
  347. {% elif tn == 16 %}
  348. <h1 class="title">{{title}} <sub>(차단)</sub></h1>
  349. <form id="usrform" method="POST" action="/ban/{{page}}">
  350. {% if now == '차단' %}
  351. <input class="form-control" name="end" style="width: 100%">
  352. <br>
  353. <br>
  354. <span>아무것도 안 적으면 무기한 차단 입니다.</span>
  355. <br>
  356. <br>
  357. <span>차단 일 지정시 형식은 YYYY-MM-DD로 기록 해야합니다. (예시: 2017-01-20, 2017-10-15)</span>
  358. <br>
  359. <br>
  360. <span>지금 시각은 {{today}} 입니다.</span>
  361. <br>
  362. <br>
  363. <input class="form-control" name="why" style="width: 100%">
  364. <br>
  365. <br>
  366. <span>사유를 쓰는 곳 입니다.</span>
  367. {% if allif == 1 %}
  368. <br>
  369. <br>
  370. <input type="checkbox" name="band">
  371. <span>대역 차단</span>
  372. </input>
  373. {% endif %}
  374. <br>
  375. <br>
  376. {% endif %}
  377. <button class="btn btn-primary" type="submit">{{now}}</button>
  378. </form>
  379. {% elif tn == 17 %}
  380. <h1 class="title">{{title}}</h1>
  381. <div>
  382. <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>
  383. <h2>기초 문법</h2>
  384. <li>~~취소선~~ --취소선--</li>
  385. <li>'''강조'''</li>
  386. <li>''기울이기''</li>
  387. <li>__언더 바__</li>
  388. <li>^^윗 첨자^^</li>
  389. <li>,,아랫 첨자,,</li>
  390. <h2>문단 문법</h2>
  391. <li>[목차]</li>
  392. <li>= 1단계 문단 =</li>
  393. <li>== 2단계 문단 ==</li>
  394. <li>=== 3단계 문단 ===</li>
  395. <li>==== 4단계 문단 ====</li>
  396. <li>===== 5단계 문단 =====</li>
  397. <li>====== 6단계 문단 ======</li>
  398. <h2>링크 문법</h2>
  399. <li>[[내부 링크]]</li>
  400. <li>[[내부 링크|보이는 내용]]</li>
  401. <li>[[외부 링크]]</li>
  402. <li>[[외부 링크|보이는 내용]]</li>
  403. <h2>유튜브 문법</h2>
  404. <li>[youtube(코드)]</li>
  405. <li>[youtube(코드, width=가로, height=세로)]</li>
  406. <li>[youtube(코드, height=세로, width=가로)]</li>
  407. <h2>각주 문법</h2>
  408. <li>[* 내용]</li>
  409. <li>[*이름 내용]</li>
  410. <li>[각주]</li>
  411. <h2>넘겨주기 문법</h2>
  412. <li>#redirect 문서명</li>
  413. <li>#넘겨주기 문서명</li>
  414. </div>
  415. {% elif tn == 18 %}
  416. <h1 class="title">{{title}} <sub>(권한 부여)</sub></h1>
  417. <form id="usrform" method="POST" action="/admin/{{page}}">
  418. {% if now == '권한 부여' %}
  419. <select name="select">
  420. <option value="admin" selected="selected">관리자</option>
  421. <option value="ownet">소유자</option>
  422. </select>
  423. <br>
  424. <br>
  425. {% endif %}
  426. <button class="btn btn-primary" type="submit">{{now}}</button>
  427. </form>
  428. {% elif tn == 19 %}
  429. <h1 class="title">{{title}} <sub>(ACL)</sub></h1>
  430. <p>{{now}}</p>
  431. <form id="usrform" method="POST" action="/acl/{{page}}">
  432. <select name="select">
  433. <option value="admin" selected="selected">관리자만</option>
  434. <option value="user">유저 이상</option>
  435. <option value="normal">일반</option>
  436. </select>
  437. <br>
  438. <br>
  439. <button class="btn btn-primary" type="submit">ACL 변경</button>
  440. </form>
  441. {% elif tn == 20 %}
  442. <h1 class="title">{{title}}</h1>
  443. <table style="width: 100%;">
  444. <tbody>
  445. <tr>
  446. <td style="text-align: center;width:20%;">차단자</td>
  447. <td style="text-align: center;width:20%;">관리자</td>
  448. <td style="text-align: center;width:20%;">언제까지</td>
  449. <td style="text-align: center;width:20%;">왜</td>
  450. <td style="text-align: center;width:20%;">시간</td>
  451. </tr>
  452. </tbody>
  453. </table>
  454. {% autoescape false %}
  455. {{rows}}
  456. {% endautoescape %}
  457. {% elif tn == 21 %}
  458. <h1 class="title">{{title}}</h1>
  459. <div>
  460. <form action="" method=post enctype=multipart/form-data>
  461. <input type=file name=file>
  462. <input type=submit value=Upload>
  463. </form>
  464. </div>
  465. {% elif tn == 22 %}
  466. <h1 class="title">{{title}}</h1>
  467. <table style="width: 100%;">
  468. <tbody>
  469. <tr>
  470. <td style="text-align: center;width:33.33%;">유저</td>
  471. <td style="text-align: center;width:33.33%;">아이피</td>
  472. <td style="text-align: center;width:33.33%;">언제</td>
  473. </tr>
  474. </tbody>
  475. </table>
  476. {% autoescape false %}
  477. {{rows}}
  478. {% endautoescape %}
  479. {% else %}
  480. <h1 class="title">{{title}}</h1>
  481. <div>
  482. {% autoescape false %}
  483. {{data}}
  484. {% endautoescape %}
  485. </div>
  486. {% endif %}
  487. <hr id="last">
  488. <p>{{license}}</p>
  489. <div id="powered">
  490. <a href="https://github.com/2DU/PYnamu"><img src="{{url_for('static', filename='images/on2.png')}}" width="100px"></a>
  491. </div>
  492. </div>
  493. </body>
  494. </html>