index.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  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="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css">
  8. <script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/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}}</h1>
  60. <h2 class="titlee"><span style="margin-left:5px">{{acl}}</span></h2>
  61. {% if redirect %}
  62. {% autoescape false %}
  63. <li>{{redirect}}</li>
  64. <br>
  65. {% endautoescape %}
  66. {% endif %}
  67. <div>
  68. {% autoescape false %}
  69. {{data}}
  70. {% endautoescape %}
  71. </div>
  72. {% elif tn == 2 %}
  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. <h1 class="title">{{title}}</h1>
  80. <h2 class="title"><span style="margin-left:5px"></span>(수정)</h2>
  81. <form id="usrform" name="f1" method="POST" action="/edit/{{page}}">
  82. <textarea rows="30" cols="100" name="content" form="usrform">{{data}}</textarea>
  83. <input name="send" style="margin-top:10px;width:100%" type="text">
  84. <br>
  85. <br>
  86. <div class="form-actions">
  87. <button class="btn btn-primary" type="submit" onclick="f1.action='/edit/{{page}}';">저장</button>
  88. <button class="btn" type="submit" onclick="f1.action='/preview/{{page}}';">미리보기</button>
  89. </div>
  90. </form>
  91. {% elif tn == 3 %}
  92. <h1 class="title">{{title}}</h1>
  93. <table style="width: 100%;">
  94. <tbody>
  95. <tr>
  96. <td style="text-align: center;width:33.33%;">문서명</td>
  97. <td style="text-align: center;width:33.33%;">기여자</td>
  98. <td style="text-align: center;width:33.33%;">시간</td>
  99. </tr>
  100. </tbody>
  101. </table>
  102. {% autoescape false %}
  103. {{rows}}
  104. {% endautoescape %}
  105. {% elif tn == 4 %}
  106. <h1 class="title">{{title}}</h1>
  107. {% autoescape false %}
  108. {{rows}}
  109. {% endautoescape %}
  110. {% elif tn == 5 %}
  111. <div id="tool">
  112. <nav class="menu">
  113. <a class="menu-item selected" href="#">역사</a>
  114. <a class="menu-item" href="/w/{{page}}">문서</a>
  115. </nav>
  116. </div>
  117. <h1 class="title">{{title}}</h1>
  118. <h2 class="titlee"><span style="margin-left:5px"></span>(역사)</h2>
  119. <table style="width: 100%;">
  120. <tbody>
  121. <tr>
  122. <td style="text-align: center;width:33.33%;">판</td>
  123. <td style="text-align: center;width:33.33%;">기여자</td>
  124. <td style="text-align: center;width:33.33%;">시간</td>
  125. </tr>
  126. </tbody>
  127. </table>
  128. {% autoescape false %}
  129. {{rows}}
  130. {% endautoescape %}
  131. {% elif tn == 6 %}
  132. <div id="tool">
  133. <nav class="menu">
  134. <a class="menu-item selected" href="#" onclick="return false">옛문서</a>
  135. <a class="menu-item" href="/history/{{page}}">목록</a>
  136. </nav>
  137. </div>
  138. <h1 class="titlee">{{title}}</h1>
  139. <h2 class="titlee"><span style="margin-left:5px"></span>(옛문서)</h2>
  140. <div>
  141. {% autoescape false %}
  142. {{data}}
  143. {% endautoescape %}
  144. </div>
  145. {% elif tn == 7 %}
  146. <div id="tool">
  147. <nav class="menu">
  148. <a class="menu-item selected" href="#" onclick="return false">raw</a>
  149. <a class="menu-item" href="/w/{{page}}">문서</a>
  150. </nav>
  151. </div>
  152. <h1 class="title">{{title}}</h1>
  153. <h2 class="title"><span style="margin-left:5px"></span>(raw)</h2>
  154. <div>
  155. {% autoescape false %}
  156. {{data}}
  157. {% endautoescape %}
  158. </div>
  159. {% elif tn == 8 %}
  160. <h1 class="title">{{title}}</h1>
  161. <h2 class="title"><span style="margin-left:5px"></span>(삭제)</h2>
  162. <div id="tool">
  163. <nav class="menu">
  164. <a class="menu-item selected" href="#" onclick="return false">삭제</a>
  165. <a class="menu-item" href="/w/{{page}}">문서</a>
  166. </nav>
  167. </div>
  168. <form id="usrform" method="POST" action="/delete/{{page}}">
  169. {{plus}}
  170. <br>
  171. <br>
  172. <button class="btn btn-primary" type="submit">삭제</button>
  173. </form>
  174. {% elif tn == 9 %}
  175. <h1 class="title">{{title}}</h1>
  176. <h2 class="title"><span style="margin-left:5px"></span>(이동)</h2>
  177. <div id="tool">
  178. <nav class="menu">
  179. <a class="menu-item selected" href="#" onclick="return false">이동</a>
  180. <a class="menu-item" href="/w/{{page}}">문서</a>
  181. </nav>
  182. </div>
  183. <form id="usrform" method="POST" action="/move/{{page}}">
  184. {{plus}}
  185. <br>
  186. <br>
  187. <input class="form-control input-sm" value="{{title}}" name="title" type="text">
  188. <br>
  189. <br>
  190. <button class="btn btn-primary" type="submit">이동</button>
  191. </form>
  192. {% elif tn == 10 %}
  193. <h1 class="title">{{title}}</h1>
  194. <h2 class="title"><span style="margin-left:5px"></span>(토론 목록)</h2>
  195. {% if list == 1 %}
  196. <div id="tool">
  197. <nav class="menu">
  198. <a class="menu-item selected" href="#" onclick="return false">토론 목록</a>
  199. <a class="menu-item" href="/w/{{page}}">문서</a>
  200. </nav>
  201. </div>
  202. {% else %}
  203. <div id="tool">
  204. <nav class="menu">
  205. <a class="menu-item selected" href="#" onclick="return false">닫힌 토론 목록</a>
  206. <a class="menu-item" href="/topic/{{page}}">토론 목록</a>
  207. </nav>
  208. </div>
  209. {% endif %}
  210. <form id="usrform" method="POST" action="/topic/{{page}}">
  211. {% autoescape false %}
  212. {{plus}}
  213. {% endautoescape %}
  214. {% if list == 1 %}
  215. <br>
  216. <a href="/topic/{{page}}/close">(닫힌 토론 보기)</a>
  217. <br>
  218. <br>
  219. <input class="form-control" name="topic" style="width: 100%">
  220. <br>
  221. <br>
  222. <button class="btn btn-primary" type="submit">새토론</button>
  223. {% endif %}
  224. </form>
  225. {% elif tn == 11 %}
  226. <h1 class="titlee">{{title}}</h1>
  227. <h2 class="titlee"><span style="margin-left:5px"></span>(토론)</h2>
  228. <div id="tool">
  229. <nav class="menu">
  230. <a class="menu-item selected" href="#" onclick="return false">토론</a>
  231. <a class="menu-item" href="/topic/{{page}}">토론 목록</a>
  232. </nav>
  233. </div>
  234. <h2>{{sub}}</h2>
  235. <br>
  236. {% autoescape false %}
  237. {{rows}}
  238. {% endautoescape %}
  239. {% if ban == 1 %}
  240. {% else %}
  241. <form id="usrform" method="POST" action="/topic/{{page}}/sub/{{suburl}}">
  242. <br>
  243. <textarea rows="10" cols="100" name="content" form="usrform"></textarea>
  244. <br>
  245. <br>
  246. <button class="btn btn-primary" type="submit">전송</button>
  247. </form>
  248. {% endif %}
  249. {% elif tn == 12 %}
  250. <h1 class="title">{{title}}</h1>
  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. <h1 class="title">{{title}}</h1>
  264. <h2 class="title"><span style="margin-left:5px"></span>(되돌리기)</h2>
  265. <div id="tool">
  266. <nav class="menu">
  267. <a class="menu-item selected" href="#" onclick="return false">되돌리기</a>
  268. <a class="menu-item" href="/w/{{page}}">문서</a>
  269. </nav>
  270. </div>
  271. <form id="usrform" method="POST" action="/revert/{{page}}/r/{{r}}">
  272. {{plus}}
  273. <br>
  274. <br>
  275. <button class="btn btn-primary" type="submit">되돌리기</button>
  276. </form>
  277. {% elif tn == 14 %}
  278. <h1 class="title">{{title}}</h1>
  279. <div>
  280. <h2 style="margin-top: -5px;">0.1 (알파)</h2>
  281. <li>문서 보기와 편집</li>
  282. <li>기타 문서</li>
  283. <li>랜덤 구현</li>
  284. <h2>0.2 ~ 0.9 (베타)</h2>
  285. <li>그 외 엄청나게 많은 기능 구현 (기존 Ownet 기능에서 로그인 필요한 기능 빼고 구현)</li>
  286. <h2>1.0</h2>
  287. <li>로그인 구현</li>
  288. <h2>1.1</h2>
  289. <li>차단 구현 (완료)</li>
  290. <li>토론 닫기, 정지 (완료)</li>
  291. <li>블라인드 구현 (완료)</li>
  292. <li>ACL 기능 구현 (완료)</li>
  293. <li>어드민 부여 구현 (완료)</li>
  294. <h2>1.2 (진행중)</h2>
  295. <li>토론 목록 보강</li>
  296. <li>대역 차단 구현</li>
  297. <li>diff 구현</li>
  298. <li>관리자 기능의 접근성 향상</li>
  299. <li>기본적인 다중 검사 기능</li>
  300. <h2>계속</h2>
  301. <li>버그 수정</li>
  302. <li>파서 제작</li>
  303. <br>
  304. <h2>파이나무 라이선스</h2>
  305. <li>미정</li>
  306. <h2>외부 파일 라이선스</h2>
  307. <li>인용문 아이콘 <a href="http://www.flaticon.com/free-icon/quote-left_25672">Dave Gandy</a> CC 3.0 BY</li>
  308. <li>일부 파일 <a href="https://twitter.com/Basix1120">Basix</a></li>
  309. <br>
  310. <h2>기타</h2>
  311. <li>현재 버전 1.2.0 - Beta</li>
  312. </div>
  313. {% elif tn == 15 %}
  314. <h1 class="title">{{title}}</h1>
  315. {% if title == '회원가입' %}
  316. <form id="usrform" method="POST" action="/register">
  317. {% else %}
  318. <form id="usrform" method="POST" action="/login">
  319. {% endif %}
  320. <span>아이디</span>
  321. <br>
  322. <br>
  323. <input name="id" type="text">
  324. <br>
  325. <br>
  326. <span>비밀번호</span>
  327. <br>
  328. <br>
  329. <input name="pw" type="password">
  330. <br>
  331. <br>
  332. <button class="btn btn-primary" type="submit">{{enter}}</button>
  333. </form>
  334. {% elif tn == 16 %}
  335. <h1 class="title">{{title}}</h1>
  336. <h2 class="title"><span style="margin-left:5px"></span>(차단)</h2>
  337. <form id="usrform" method="POST" action="/ban/{{page}}">
  338. {% if now == '차단' %}
  339. <input class="form-control" name="end" style="width: 100%">
  340. <br>
  341. <br>
  342. <span>아무것도 안 적으면 무기한 차단 입니다.</span>
  343. <br>
  344. <br>
  345. <span>차단 일 지정시 형식은 YYYY-MM-DD로 기록 해야합니다.</span>
  346. <br>
  347. <br>
  348. <input class="form-control" name="why" style="width: 100%">
  349. <br>
  350. <br>
  351. <span>사유를 쓰는 곳 입니다.</span>
  352. {% if allif == 1 %}
  353. <br>
  354. <br>
  355. <input type="checkbox" name="band">
  356. <span>대역 차단</span>
  357. </input>
  358. {% endif %}
  359. <br>
  360. <br>
  361. {% endif %}
  362. <button class="btn btn-primary" type="submit">{{now}}</button>
  363. </form>
  364. {% elif tn == 17 %}
  365. <h1 class="title">{{title}}</h1>
  366. <div>
  367. <h2 style="margin-top: -5px;">기초 문법</h2>
  368. <li>~~취소선~~ --취소선--</li>
  369. <li>'''강조'''</li>
  370. <li>''기울이기''</li>
  371. <li>__언더 바__</li>
  372. <li>^^윗 첨자^^</li>
  373. <li>,,아랫 첨자,,</li>
  374. <h2>문단 문법</h2>
  375. <li>= 1단계 문단 =</li>
  376. <li>== 2단계 문단 ==</li>
  377. <li>=== 3단계 문단 ===</li>
  378. <li>==== 4단계 문단 ====</li>
  379. <li>===== 5단계 문단 =====</li>
  380. <li>====== 6단계 문단 ======</li>
  381. </div>
  382. {% elif tn == 18 %}
  383. <h1 class="title">{{title}}</h1>
  384. <h2 class="title"><span style="margin-left:5px"></span>(권한 부여)</h2>
  385. <form id="usrform" method="POST" action="/admin/{{page}}">
  386. {% if now == '권한 부여' %}
  387. <select name="select">
  388. <option value="admin" selected="selected">관리자</option>
  389. <option value="ownet">소유자</option>
  390. </select>
  391. <br>
  392. <br>
  393. {% endif %}
  394. <button class="btn btn-primary" type="submit">{{now}}</button>
  395. </form>
  396. {% elif tn == 19 %}
  397. <h1 class="title">{{title}}</h1>
  398. <h2 class="title"><span style="margin-left:5px"></span>(ACL)</h2>
  399. <p>{{now}}</p>
  400. <form id="usrform" method="POST" action="/acl/{{page}}">
  401. <select name="select">
  402. <option value="admin" selected="selected">관리자만</option>
  403. <option value="user">유저 이상</option>
  404. <option value="normal">일반</option>
  405. </select>
  406. <br>
  407. <br>
  408. <button class="btn btn-primary" type="submit">ACL 변경</button>
  409. </form>
  410. {% else %}
  411. <h1 class="title">{{title}}</h1>
  412. <h2 class="title"><span style="margin-left:5px"></span></h2>
  413. <div>
  414. {% autoescape false %}
  415. {{data}}
  416. {% endautoescape %}
  417. </div>
  418. {% endif %}
  419. <hr id="last">
  420. <p>{{license}}</p>
  421. <div id="powered">
  422. <a href="https://github.com/2DU/Ownet"><img src="{{url_for('static', filename='images/on2.png')}}" width="100px"></a>
  423. </div>
  424. </div>
  425. </body>
  426. </html>