index.html 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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"></span></h2>
  61. <div>
  62. {% autoescape false %}
  63. {{data}}
  64. {% endautoescape %}
  65. </div>
  66. {% elif tn == 2 %}
  67. <div id="tool">
  68. <nav class="menu">
  69. <a class="menu-item selected" href="#">수정</a>
  70. <a class="menu-item" href="/w/{{page}}">문서</a>
  71. </nav>
  72. </div>
  73. <h1 class="title">{{title}}</h1>
  74. <h2 class="title"><span style="margin-left:5px"></span>(수정)</h2>
  75. <form id="usrform" name="f1" method="POST" action="/edit/{{page}}">
  76. <textarea rows="30" cols="100" name="content" form="usrform">{{data}}</textarea>
  77. <input name="send" style="margin-top:10px;width:100%" type="text">
  78. <br>
  79. <br>
  80. <div class="form-actions">
  81. <button class="btn btn-primary" type="submit" onclick="f1.action='/edit/{{page}}';">저장</button>
  82. <button class="btn" type="submit" onclick="f1.action='/preview/{{page}}';">미리보기</button>
  83. </div>
  84. </form>
  85. {% elif tn == 3 %}
  86. <h1 class="title">{{title}}</h1>
  87. <table style="width: 100%;">
  88. <tbody>
  89. <tr>
  90. <td style="text-align: center;width:33.33%;">문서명</td>
  91. <td style="text-align: center;width:33.33%;">기여자</td>
  92. <td style="text-align: center;width:33.33%;">시간</td>
  93. </tr>
  94. </tbody>
  95. </table>
  96. {% autoescape false %}
  97. {{rows}}
  98. {% endautoescape %}
  99. {% elif tn == 4 %}
  100. <h1 class="title">{{title}}</h1>
  101. {% autoescape false %}
  102. {{rows}}
  103. {% endautoescape %}
  104. {% elif tn == 5 %}
  105. <div id="tool">
  106. <nav class="menu">
  107. <a class="menu-item selected" href="#">역사</a>
  108. <a class="menu-item" href="/w/{{page}}">문서</a>
  109. </nav>
  110. </div>
  111. <h1 class="title">{{title}}</h1>
  112. <table style="width: 100%;">
  113. <tbody>
  114. <tr>
  115. <td style="text-align: center;width:33.33%;">판</td>
  116. <td style="text-align: center;width:33.33%;">기여자</td>
  117. <td style="text-align: center;width:33.33%;">시간</td>
  118. </tr>
  119. </tbody>
  120. </table>
  121. {% autoescape false %}
  122. {{rows}}
  123. {% endautoescape %}
  124. {% elif tn == 6 %}
  125. <div id="tool">
  126. <nav class="menu">
  127. <a class="menu-item selected" href="#" onclick="return false">옛문서</a>
  128. <a class="menu-item" href="/history/{{page}}">목록</a>
  129. </nav>
  130. </div>
  131. <h1 class="titlee">{{title}}</h1>
  132. <h2 class="titlee"><span style="margin-left:5px"></span>(old)</h2>
  133. <div>
  134. {% autoescape false %}
  135. {{data}}
  136. {% endautoescape %}
  137. </div>
  138. {% elif tn == 7 %}
  139. <div id="tool">
  140. <nav class="menu">
  141. <a class="menu-item selected" href="#" onclick="return false">raw</a>
  142. <a class="menu-item" href="/w/{{page}}">문서</a>
  143. </nav>
  144. </div>
  145. <h1 class="title">{{title}}</h1>
  146. <h2 class="title"><span style="margin-left:5px"></span>(raw)</h2>
  147. <div>
  148. {% autoescape false %}
  149. {{data}}
  150. {% endautoescape %}
  151. </div>
  152. {% elif tn == 8 %}
  153. <h1 class="title">{{title}}</h1>
  154. <h2 class="title"><span style="margin-left:5px"></span>(삭제)</h2>
  155. <div id="tool">
  156. <nav class="menu">
  157. <a class="menu-item selected" href="#" onclick="return false">삭제</a>
  158. <a class="menu-item" href="/w/{{page}}">문서</a>
  159. </nav>
  160. </div>
  161. <form id="usrform" method="POST" action="/delete/{{page}}">
  162. {{plus}}
  163. <br>
  164. <br>
  165. <button class="btn btn-primary" type="submit">삭제</button>
  166. </form>
  167. {% elif tn == 9 %}
  168. <h1 class="title">{{title}}</h1>
  169. <h2 class="title"><span style="margin-left:5px"></span>(이동)</h2>
  170. <div id="tool">
  171. <nav class="menu">
  172. <a class="menu-item selected" href="#" onclick="return false">이동</a>
  173. <a class="menu-item" href="/w/{{page}}">문서</a>
  174. </nav>
  175. </div>
  176. <form id="usrform" method="POST" action="/move/{{page}}">
  177. {{plus}}
  178. <br>
  179. <br>
  180. <input class="form-control input-sm" value="{{title}}" name="title" type="text">
  181. <br>
  182. <br>
  183. <button class="btn btn-primary" type="submit">이동</button>
  184. </form>
  185. {% elif tn == 10 %}
  186. <h1 class="title">{{title}}</h1>
  187. <h2 class="title"><span style="margin-left:5px"></span>(토론 목록)</h2>
  188. <form id="usrform" method="POST" action="/topic/{{page}}">
  189. {% autoescape false %}
  190. {{plus}}
  191. {% endautoescape %}
  192. <br>
  193. <input class="form-control" name="topic" style="width: 100%">
  194. <br>
  195. <br>
  196. <button class="btn btn-primary" type="submit">새토론</button>
  197. </form>
  198. {% elif tn == 11 %}
  199. <h1 class="titlee">{{title}}</h1>
  200. <h2 class="titlee"><span style="margin-left:5px"></span>(토론)</h2>
  201. <h2>{{sub}}</h2>
  202. <br>
  203. {% autoescape false %}
  204. {{rows}}
  205. {% endautoescape %}
  206. <form id="usrform" method="POST" action="/topic/{{page}}/sub/{{suburl}}">
  207. <br>
  208. <textarea rows="10" cols="100" name="content" form="usrform"></textarea>
  209. <br>
  210. <br>
  211. <button class="btn btn-primary" type="submit">전송</button>
  212. </form>
  213. {% elif tn == 12 %}
  214. <h1 class="title">{{title}}</h1>
  215. <table style="width: 100%;">
  216. <tbody>
  217. <tr>
  218. <td style="text-align: center;width:33.33%;">토론명</td>
  219. <td style="text-align: center;width:33.33%;">토론자</td>
  220. <td style="text-align: center;width:33.33%;">시간</td>
  221. </tr>
  222. </tbody>
  223. </table>
  224. {% autoescape false %}
  225. {{rows}}
  226. {% endautoescape %}
  227. {% elif tn == 13 %}
  228. <h1 class="title">{{title}}</h1>
  229. <h2 class="title"><span style="margin-left:5px"></span>(되돌리기)</h2>
  230. <div id="tool">
  231. <nav class="menu">
  232. <a class="menu-item selected" href="#" onclick="return false">되돌리기</a>
  233. <a class="menu-item" href="/w/{{page}}">문서</a>
  234. </nav>
  235. </div>
  236. <form id="usrform" method="POST" action="/revert/{{page}}/r/{{r}}">
  237. {{plus}}
  238. <br>
  239. <br>
  240. <button class="btn btn-primary" type="submit">되돌리기</button>
  241. </form>
  242. {% elif tn == 14 %}
  243. <h1 class="title">{{title}}</h1>
  244. <h2 class="title"><span style="margin-left:5px"></span></h2>
  245. <div>
  246. <h2 style="margin-top: -5px;">0.1 (알파)</h2>
  247. <li>문서 보기와 편집</li>
  248. <li>기타 문서</li>
  249. <li>랜덤 구현</li>
  250. <h2>0.2 ~ 0.9 (베타)</h2>
  251. <li>그 외 엄청나게 많은 기능 구현 (기존 Ownet 기능에서 로그인 필요한 기능 빼고 구현)</li>
  252. <h2>1.0</h2>
  253. <li>로그인 구현 (예정)</li>
  254. </div>
  255. {% else %}
  256. <h1 class="title">{{title}}</h1>
  257. <h2 class="title"><span style="margin-left:5px"></span></h2>
  258. <div>
  259. {% autoescape false %}
  260. {{data}}
  261. {% endautoescape %}
  262. </div>
  263. {% endif %}
  264. <hr id="last">
  265. <p>{{license}}</p>
  266. <div id="powered">
  267. <a href="https://github.com/2DU/Ownet"><img src="{{url_for('static', filename='images/on2.png')}}" width="100px"></a>
  268. </div>
  269. </div>
  270. </body>
  271. </html>